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