56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitea,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
imagemagick,
|
|
makeWrapper,
|
|
installShellFiles,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "wallust";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "explosion-mental";
|
|
repo = "wallust";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-tNlSRdldzAXpM3x4XGVZeidwhplYu7xR7h7qPELaasE=";
|
|
};
|
|
|
|
cargoHash = "sha256-7x217i1htwHoIc+uvYNwpefIRnPRV7RI0f4c4R2k8tU=";
|
|
|
|
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 ]}"
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
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/${finalAttrs.version}";
|
|
mainProgram = "wallust";
|
|
};
|
|
})
|