2021-01-17 13:51:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
2020-11-12 16:43:08 +00:00
|
|
|
, coreutils
|
|
|
|
}:
|
|
|
|
|
|
|
|
{ version
|
|
|
|
, src
|
|
|
|
, patches ? [ ]
|
|
|
|
}:
|
|
|
|
|
2020-12-07 18:49:58 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2020-11-12 16:43:08 +00:00
|
|
|
inherit patches src version;
|
|
|
|
|
2021-01-17 13:51:41 +00:00
|
|
|
pname = "fedora${lib.versions.major version}-backgrounds";
|
2020-11-12 16:43:08 +00:00
|
|
|
|
|
|
|
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)"
|
2023-05-03 05:15:03 +00:00
|
|
|
|
|
|
|
# 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)"
|
2020-11-12 16:43:08 +00:00
|
|
|
];
|
|
|
|
|
2021-01-17 13:51:41 +00:00
|
|
|
meta = with lib; {
|
2020-11-12 16:43:08 +00:00
|
|
|
homepage = "https://github.com/fedoradesign/backgrounds";
|
|
|
|
description = "A set of default and supplemental wallpapers for Fedora";
|
|
|
|
license = licenses.cc-by-sa-40;
|
|
|
|
platforms = platforms.unix;
|
2021-07-03 10:07:30 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-11-12 16:43:08 +00:00
|
|
|
};
|
|
|
|
}
|