blob: 1211a29c9f0ead67a7d9c7dbcba4c52d6fd1902b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
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-fail "usr/share" "share" \
--replace-fail "/usr/bin/" "" \
--replace-fail "/bin/" ""
done
for f in $(find . -name '*.xml'); do
substituteInPlace $f \
--replace-fail "/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 = {
homepage = "https://github.com/fedoradesign/backgrounds";
description = "Set of default and supplemental wallpapers for Fedora";
license = lib.licenses.cc-by-sa-40;
platforms = lib.platforms.unix;
maintainers = [ ];
};
}
|