mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
7b31c13643
Changelog: https://codeberg.org/explosion-mental/wallust/releases/tag/3.0.0 Diff: https://codeberg.org/explosion-mental/wallust/compare/3.0.0-beta...3.0.0
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ lib
|
|
, fetchFromGitea
|
|
, rustPlatform
|
|
, nix-update-script
|
|
, imagemagick
|
|
, makeWrapper
|
|
, installShellFiles
|
|
}:
|
|
let
|
|
version = "3.0.0";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "wallust";
|
|
inherit version;
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "explosion-mental";
|
|
repo = "wallust";
|
|
rev = version;
|
|
hash = "sha256-vZTHlonepK1cyxHhGu3bVBuOmExPtRFrAnYp71Jfs8c=";
|
|
};
|
|
|
|
cargoHash = "sha256-o6VRekazqbKTef6SLjHqs9/z/Q70auvunP+yFDkclpg=";
|
|
|
|
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/${version}";
|
|
mainProgram = "wallust";
|
|
};
|
|
}
|