nixpkgs/pkgs/by-name/sw/swww/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, lz4
, libxkbcommon
, installShellFiles
, scdoc
}:
2022-11-22 02:03:42 +00:00
rustPlatform.buildRustPackage rec {
pname = "swww";
2024-01-15 14:06:37 +00:00
version = "0.8.2";
2022-11-22 02:03:42 +00:00
src = fetchFromGitHub {
2024-01-15 14:06:37 +00:00
owner = "LGFae";
2024-03-16 13:43:47 +00:00
repo = "swww";
rev = "refs/tags/v${version}";
2024-01-15 14:06:37 +00:00
hash = "sha256-n7YdUmIZGu7W7cX6OvVW+wbkKjFvont4hEAhZXYDQd8=";
2022-11-22 02:03:42 +00:00
};
2023-02-04 16:40:58 +00:00
2024-03-16 13:43:47 +00:00
cargoHash = "sha256-lZC71M3lbsI+itMydAp5VCz0cpSHo/FpkQFC1NlN4DU=";
buildInputs = [
lz4
libxkbcommon
];
2023-02-19 04:22:24 +00:00
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 \
2024-03-16 13:43:47 +00:00
--bash completions/swww.bash \
--fish completions/swww.fish \
--zsh completions/_swww
'';
2023-02-04 16:40:58 +00:00
2022-11-22 02:03:42 +00:00
meta = with lib; {
description = "Efficient animated wallpaper daemon for wayland, controlled at runtime";
2024-01-15 14:06:37 +00:00
homepage = "https://github.com/LGFae/swww";
2022-11-22 02:03:42 +00:00
license = licenses.gpl3;
maintainers = with maintainers; [ mateodd25 donovanglover ];
2022-11-22 02:03:42 +00:00
platforms = platforms.linux;
mainProgram = "swww";
2022-11-22 02:03:42 +00:00
};
}