2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
pkg-config,
|
|
|
|
lz4,
|
|
|
|
libxkbcommon,
|
|
|
|
installShellFiles,
|
|
|
|
scdoc,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swww";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.9.5";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-25 14:12:00 +00:00
|
|
|
owner = "LGFae";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "swww";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-ldy9HhIsWdtTdvtRLV3qDT80oX646BI4Q+YX5wJXbsc=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"bitcode-0.6.0" = "sha256-D1Jv9k9m6m7dXjU8s4YMEMC39FOUN7Ix9SvLKhM1yh0=";
|
|
|
|
};
|
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
lz4
|
|
|
|
libxkbcommon
|
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
doCheck = false; # Integration tests do not work in sandbox environment
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
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-04-21 15:54:59 +00:00
|
|
|
--bash completions/swww.bash \
|
|
|
|
--fish completions/swww.fish \
|
|
|
|
--zsh completions/_swww
|
2023-08-04 22:07:22 +00:00
|
|
|
'';
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2023-03-15 16:39:30 +00:00
|
|
|
description = "Efficient animated wallpaper daemon for wayland, controlled at runtime";
|
2024-01-25 14:12:00 +00:00
|
|
|
homepage = "https://github.com/LGFae/swww";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
mateodd25
|
|
|
|
donovanglover
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "swww";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|