3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/misc/fedora-backgrounds/generic.nix

44 lines
884 B
Nix
Raw Normal View History

{ lib
, stdenvNoCC
2020-11-12 16:43:08 +00:00
, coreutils
}:
{ version
, src
, patches ? [ ]
}:
stdenvNoCC.mkDerivation {
2020-11-12 16:43:08 +00:00
inherit patches src version;
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)"
];
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;
maintainers = with maintainers; [ danieldk ];
};
}