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