nixpkgs/pkgs/applications/misc/wallust/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1003 B
Nix
Raw Normal View History

2023-07-21 12:59:38 +00:00
{ lib
, fetchFromGitea
2023-07-21 12:59:38 +00:00
, rustPlatform
2023-10-04 10:56:16 +00:00
, nix-update-script
, imagemagick
, makeWrapper
2023-07-21 12:59:38 +00:00
}:
let
2024-01-26 07:21:32 +00:00
version = "2.10.0";
in
rustPlatform.buildRustPackage {
pname = "wallust";
inherit version;
2023-06-14 21:48:39 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "explosion-mental";
repo = "wallust";
2023-06-14 21:48:39 +00:00
rev = version;
2024-01-26 07:21:32 +00:00
hash = "sha256-0kPmr7/2uVncpCGVOeIkYlm2M0n9+ypVl7bQ9HnqLb4=";
2023-06-14 21:48:39 +00:00
};
2024-01-26 07:21:32 +00:00
cargoHash = "sha256-p1NKEppBYLdCsTY7FHPzaGladLv5HqIVNJxSoFJOx50=";
2023-10-04 10:56:16 +00:00
nativeBuildInputs = [ makeWrapper ];
postFixup = ''
wrapProgram $out/bin/wallust \
--prefix PATH : "${lib.makeBinPath [ imagemagick ]}"
'';
2023-10-04 10:56:16 +00:00
passthru.updateScript = nix-update-script { };
2023-06-14 21:48:39 +00:00
meta = {
2023-07-17 01:38:29 +00:00
description = "A better pywal";
homepage = "https://codeberg.org/explosion-mental/wallust";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onemoresuza iynaix ];
downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${version}";
2023-06-14 21:48:39 +00:00
mainProgram = "wallust";
};
}