mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

Changelog: https://github.com/LGFae/swww/releases/tag/v0.10.2 Diff: https://github.com/LGFae/swww/compare/refs/tags/v0.10.1...refs/tags/v0.10.2
67 lines
1.4 KiB
Nix
67 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
lz4,
|
|
libxkbcommon,
|
|
installShellFiles,
|
|
scdoc,
|
|
wayland-protocols,
|
|
wayland-scanner,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "swww";
|
|
version = "0.10.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LGFae";
|
|
repo = "swww";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-qvxG8UhO7MsS0lWVGfHUsBKevAa+VJe41NrcX1ZCJdU=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-Tiszc/COelBRolrrbKpNklk8IVppIhGmxspnTb20LAE=";
|
|
|
|
buildInputs = [
|
|
lz4
|
|
libxkbcommon
|
|
wayland-protocols
|
|
wayland-scanner
|
|
];
|
|
|
|
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 = {
|
|
description = "Efficient animated wallpaper daemon for wayland, controlled at runtime";
|
|
homepage = "https://github.com/LGFae/swww";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [
|
|
mateodd25
|
|
donovanglover
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "swww";
|
|
};
|
|
})
|