nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.3 kB view raw
1{ 2 lib, 3 fetchFromCodeberg, 4 rustPlatform, 5 nix-update-script, 6 imagemagick, 7 makeWrapper, 8 installShellFiles, 9}: 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "wallust"; 12 version = "3.5.2"; 13 14 src = fetchFromCodeberg { 15 owner = "explosion-mental"; 16 repo = "wallust"; 17 rev = finalAttrs.version; 18 hash = "sha256-ZgkeM9gMw9TB5NR+xyxBepKHO16bLVVFJN4IY39gllg="; 19 }; 20 21 cargoHash = "sha256-XrIi+8p2OZ7O6MTgqKbgN/9gLUbvB7uN9Yr2X1BYHIU="; 22 23 nativeBuildInputs = [ 24 makeWrapper 25 installShellFiles 26 ]; 27 28 postInstall = '' 29 installManPage man/wallust* 30 installShellCompletion --cmd wallust \ 31 --bash completions/wallust.bash \ 32 --zsh completions/_wallust \ 33 --fish completions/wallust.fish 34 ''; 35 36 postFixup = '' 37 wrapProgram $out/bin/wallust \ 38 --prefix PATH : "${lib.makeBinPath [ imagemagick ]}" 39 ''; 40 41 passthru.updateScript = nix-update-script { }; 42 43 meta = { 44 description = "Better pywal"; 45 homepage = "https://codeberg.org/explosion-mental/wallust"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ 48 onemoresuza 49 iynaix 50 ]; 51 downloadPage = "https://codeberg.org/explosion-mental/wallust/releases/tag/${finalAttrs.version}"; 52 mainProgram = "wallust"; 53 }; 54})