nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 coreutils,
5}:
6
7{
8 version,
9 src,
10 patches ? [ ],
11}:
12
13stdenvNoCC.mkDerivation {
14 inherit patches src version;
15
16 pname = "fedora${lib.versions.major version}-backgrounds";
17
18 dontBuild = true;
19
20 postPatch = ''
21 for f in default/Makefile extras/Makefile; do
22 substituteInPlace $f \
23 --replace "usr/share" "share" \
24 --replace "/usr/bin/" "" \
25 --replace "/bin/" ""
26 done
27
28 for f in $(find . -name '*.xml'); do
29 substituteInPlace $f \
30 --replace "/usr/share" "$out/share"
31 done;
32 '';
33
34 installFlags = [
35 "DESTDIR=$(out)"
36
37 # The Xfce background directory is assumed to be in installed in an
38 # FHS-compliant system. This is only effective for v36.0.0 and later
39 # versions where the following variable is used.
40 "WP_DIR_LN=$(DESTDIR)/share/backgrounds/$(WP_NAME)"
41 ];
42
43 meta = with lib; {
44 homepage = "https://github.com/fedoradesign/backgrounds";
45 description = "Set of default and supplemental wallpapers for Fedora";
46 license = licenses.cc-by-sa-40;
47 platforms = platforms.unix;
48 maintainers = [ ];
49 };
50}