diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-03-24 11:04:41 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-03-24 11:04:41 +0100 |
commit | 5423cabbbf2b6dec5568f1ecabd288d5d9a642ec (patch) | |
tree | f316a6a921bfefd3a63bd4502c2eb50ff1644f67 /nixpkgs/pkgs/by-name/sw/swww/package.nix | |
parent | 46a88117a05c3469af5d99433af140c3de8ca088 (diff) | |
parent | 8aa81f34981add12aecada6c702ddbbd0375ca36 (diff) | |
download | nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.gz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.bz2 nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.lz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.xz nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.tar.zst nixlib-5423cabbbf2b6dec5568f1ecabd288d5d9a642ec.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/sw/swww/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/sw/swww/package.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/sw/swww/package.nix b/nixpkgs/pkgs/by-name/sw/swww/package.nix new file mode 100644 index 000000000000..cf9b878a506d --- /dev/null +++ b/nixpkgs/pkgs/by-name/sw/swww/package.nix @@ -0,0 +1,58 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, pkg-config +, lz4 +, libxkbcommon +, installShellFiles +, scdoc +}: + +rustPlatform.buildRustPackage rec { + pname = "swww"; + version = "0.8.2"; + + src = fetchFromGitHub { + owner = "LGFae"; + repo = "swww"; + rev = "refs/tags/v${version}"; + hash = "sha256-n7YdUmIZGu7W7cX6OvVW+wbkKjFvont4hEAhZXYDQd8="; + }; + + cargoHash = "sha256-lZC71M3lbsI+itMydAp5VCz0cpSHo/FpkQFC1NlN4DU="; + + buildInputs = [ + lz4 + libxkbcommon + ]; + + doCheck = false; # Integration tests do not work in sandbox environment + + nativeBuildInputs = [ + pkg-config + installShellFiles + scdoc + ]; + + postInstall = '' + for f in doc/*.scd; do + local page="doc/$(basename "$f" .scd)" + scdoc < "$f" > "$page" + installManPage "$page" + done + + installShellCompletion --cmd swww \ + --bash completions/swww.bash \ + --fish completions/swww.fish \ + --zsh completions/_swww + ''; + + meta = with lib; { + description = "Efficient animated wallpaper daemon for wayland, controlled at runtime"; + homepage = "https://github.com/LGFae/swww"; + license = licenses.gpl3; + maintainers = with maintainers; [ mateodd25 donovanglover ]; + platforms = platforms.linux; + mainProgram = "swww"; + }; +} |