tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
xscreensaver: 6.04 -> 6.06
Anderson Torres
2 years ago
62bd9614
fdfe91e7
+62
-22
1 changed file
expand all
collapse all
unified
split
pkgs
misc
screensavers
xscreensaver
default.nix
+62
-22
pkgs/misc/screensavers/xscreensaver/default.nix
···
1
-
{ lib, stdenv, fetchurl, makeWrapper
2
-
, pkg-config, intltool
3
-
, perl, perlPackages, gettext, libX11, libXext, libXi, libXt
4
-
, libXft, libXinerama, libXrandr, libXxf86vm, libGL, libGLU, gle
5
-
, gtk2, gdk-pixbuf, gdk-pixbuf-xlib, libxml2, pam
6
-
, systemd, coreutils
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7
, forceInstallAllHacks ? false
8
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
9
}:
10
11
-
stdenv.mkDerivation rec {
12
-
version = "6.04";
13
pname = "xscreensaver";
0
14
15
src = fetchurl {
16
-
url = "https://www.jwz.org/${pname}/${pname}-${version}.tar.gz";
17
-
sha256 = "sha256-eHAUsp8MV5Pswtk+EQmgSf9IqwwpuFHas09oPO72sVI=";
18
};
19
20
nativeBuildInputs = [
21
-
pkg-config intltool makeWrapper
0
0
22
];
23
24
buildInputs = [
25
-
perl gettext libX11 libXext libXi libXt
26
-
libXft libXinerama libXrandr libXxf86vm libGL libGLU gle
27
-
gtk2 gdk-pixbuf gdk-pixbuf-xlib libxml2 pam
28
-
perlPackages.LWPProtocolHttps perlPackages.MozillaCA
29
-
] ++ lib.optional withSystemd systemd;
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
30
31
preConfigure = ''
32
# Fix installation paths for GTK resources.
···
84
for bin in $out/bin/*; do
85
wrapProgram "$bin" \
86
--prefix PATH : "$out/libexec/xscreensaver" \
87
-
--prefix PATH : "${lib.makeBinPath [ coreutils perl ]}" \
88
--prefix PERL5LIB ':' $PERL5LIB
89
done
90
-
'' + lib.optionalString forceInstallAllHacks ''
0
91
make -j$NIX_BUILD_CORES -C hacks/glx dnalogo
92
cat hacks/Makefile.in \
93
| grep -E '([a-z0-9]+):[[:space:]]*\1[.]o' | cut -d : -f 1 | xargs make -j$NIX_BUILD_CORES -C hacks
···
100
meta = {
101
homepage = "https://www.jwz.org/xscreensaver/";
102
description = "A set of screensavers";
103
-
license = lib.licenses.mit;
104
-
maintainers = with lib.maintainers; [ raskin ];
105
-
platforms = lib.platforms.unix; # Once had cygwin problems
106
downloadPage = "https://www.jwz.org/xscreensaver/download.html";
0
0
0
107
};
108
-
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchurl
4
+
, coreutils
5
+
, gdk-pixbuf
6
+
, gdk-pixbuf-xlib
7
+
, gettext
8
+
, gle
9
+
, gtk3
10
+
, intltool
11
+
, libGL
12
+
, libGLU
13
+
, libX11
14
+
, libXext
15
+
, libXft
16
+
, libXi
17
+
, libXinerama
18
+
, libXrandr
19
+
, libXt
20
+
, libXxf86vm
21
+
, libxml2
22
+
, makeWrapper
23
+
, pam
24
+
, perlPackages
25
+
, pkg-config
26
+
, systemd
27
, forceInstallAllHacks ? false
28
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
29
}:
30
31
+
stdenv.mkDerivation (finalAttrs: {
0
32
pname = "xscreensaver";
33
+
version = "6.06";
34
35
src = fetchurl {
36
+
url = "https://www.jwz.org/xscreensaver/xscreensaver-${finalAttrs.version}.tar.gz";
37
+
hash = "sha256-9TT6uFqDbeW4vo6R/CG4DKfWpO2ThuviB9S+ek50mac=";
38
};
39
40
nativeBuildInputs = [
41
+
intltool
42
+
makeWrapper
43
+
pkg-config
44
];
45
46
buildInputs = [
47
+
gdk-pixbuf
48
+
gdk-pixbuf-xlib
49
+
gettext
50
+
gle
51
+
gtk3
52
+
libGL
53
+
libGLU
54
+
libX11
55
+
libXext
56
+
libXft
57
+
libXi
58
+
libXinerama
59
+
libXrandr
60
+
libXt
61
+
libXxf86vm
62
+
libxml2
63
+
pam
64
+
perlPackages.LWPProtocolHttps
65
+
perlPackages.MozillaCA
66
+
perlPackages.perl
67
+
]
68
+
++ lib.optional withSystemd systemd;
69
70
preConfigure = ''
71
# Fix installation paths for GTK resources.
···
45
for bin in $out/bin/*; do
46
wrapProgram "$bin" \
47
--prefix PATH : "$out/libexec/xscreensaver" \
48
+
--prefix PATH : "${lib.makeBinPath [ coreutils perlPackages.perl ]}" \
49
--prefix PERL5LIB ':' $PERL5LIB
50
done
51
+
''
52
+
+ lib.optionalString forceInstallAllHacks ''
53
make -j$NIX_BUILD_CORES -C hacks/glx dnalogo
54
cat hacks/Makefile.in \
55
| grep -E '([a-z0-9]+):[[:space:]]*\1[.]o' | cut -d : -f 1 | xargs make -j$NIX_BUILD_CORES -C hacks
···
60
meta = {
61
homepage = "https://www.jwz.org/xscreensaver/";
62
description = "A set of screensavers";
0
0
0
63
downloadPage = "https://www.jwz.org/xscreensaver/download.html";
64
+
license = lib.licenses.mit;
65
+
maintainers = with lib.maintainers; [ raskin AndersonTorres ];
66
+
platforms = lib.platforms.unix;
67
};
68
+
})