mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
1001 B
Nix
43 lines
1001 B
Nix
{ lib
|
|
, fetchFromGitea
|
|
, rustPlatform
|
|
, nix-update-script
|
|
, imagemagick
|
|
, makeWrapper
|
|
}:
|
|
let
|
|
version = "2.10.0";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "wallust";
|
|
inherit version;
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "explosion-mental";
|
|
repo = "wallust";
|
|
rev = version;
|
|
hash = "sha256-0kPmr7/2uVncpCGVOeIkYlm2M0n9+ypVl7bQ9HnqLb4=";
|
|
};
|
|
|
|
cargoHash = "sha256-p1NKEppBYLdCsTY7FHPzaGladLv5HqIVNJxSoFJOx50=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
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";
|
|
};
|
|
}
|