nixpkgs/pkgs/by-name/wa/wallust/package.nix

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

52 lines
1.2 KiB
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
2024-07-06 11:24:47 +00:00
, installShellFiles
2023-07-21 12:59:38 +00:00
}:
let
version = "3.1.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;
hash = "sha256-Tad+zyhmTr734GEW0A4SNrfWzqcL0gLFsM6MoMrV17k=";
2023-06-14 21:48:39 +00:00
};
cargoHash = "sha256-SEaq0qeWuDeIeCqz9imb5nV4WK44CF5wIwG62nhyqlU=";
2023-10-04 10:56:16 +00:00
2024-07-06 11:24:47 +00:00
nativeBuildInputs = [ makeWrapper installShellFiles ];
postInstall = ''
installManPage man/wallust*
installShellCompletion --cmd wallust \
--bash completions/wallust.bash \
--zsh completions/_wallust \
--fish completions/wallust.fish
'';
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 = "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";
};
}