nixpkgs/pkgs/data/misc/fedora-backgrounds/generic.nix
Daniël de Kok 18a5777c77
fedora-backgrounds: use stdenvNoCC (#106149)
No need for a C build environment when copying some backgrounds.
2020-12-07 13:49:58 -05:00

43 lines
900 B
Nix

{ stdenvNoCC
, coreutils
}:
{ version
, src
, patches ? [ ]
}:
stdenvNoCC.mkDerivation {
inherit patches src version;
pname = "fedora${stdenvNoCC.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)"
];
meta = with stdenvNoCC.lib; {
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 ];
};
}