Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.1 KiB
Nix

{
lib,
stdenvNoCC,
coreutils,
}:
{
version,
src,
patches ? [ ],
}:
stdenvNoCC.mkDerivation {
inherit patches src version;
pname = "fedora${lib.versions.major version}-backgrounds";
dontBuild = true;
postPatch = ''
for f in default/Makefile extras/Makefile; do
substituteInPlace $f \
--replace "usr/share" "share" \
--replace "/usr/bin/" "" \
--replace "/bin/" ""
done
for f in $(find . -name '*.xml'); do
substituteInPlace $f \
--replace "/usr/share" "$out/share"
done;
'';
installFlags = [
"DESTDIR=$(out)"
# The Xfce background directory is assumed to be in installed in an
# FHS-compliant system. This is only effective for v36.0.0 and later
# versions where the following variable is used.
"WP_DIR_LN=$(DESTDIR)/share/backgrounds/$(WP_NAME)"
];
meta = with lib; {
homepage = "https://github.com/fedoradesign/backgrounds";
description = "Set of default and supplemental wallpapers for Fedora";
license = licenses.cc-by-sa-40;
platforms = platforms.unix;
maintainers = [ ];
};
}