tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
afterstep: Fix libSM usage & build on non-NixOS Linux
OPNA2608
4 years ago
e1298531
9fffabf9
+11
-3
1 changed file
expand all
collapse all
unified
split
pkgs
applications
window-managers
afterstep
default.nix
+11
-3
pkgs/applications/window-managers/afterstep/default.nix
···
1
{ lib, stdenv, fetchurl, pkg-config
2
-
, libjpeg, libtiff, libpng, freetype
3
, fltk, gtk
4
-
, libX11, libXext, libICE
5
, dbus
6
, fetchpatch
7
}:
···
24
})
25
];
26
0
0
0
0
0
0
0
0
27
nativeBuildInputs = [ pkg-config ];
28
-
buildInputs = [ libjpeg libtiff libpng freetype fltk gtk libX11 libXext libICE dbus dbus ];
29
30
# A strange type of bug: dbus is not immediately found by pkg-config
31
preConfigure = ''
···
1
{ lib, stdenv, fetchurl, pkg-config
2
+
, libtiff
3
, fltk, gtk
4
+
, libICE, libSM
5
, dbus
6
, fetchpatch
7
}:
···
24
})
25
];
26
27
+
postPatch = ''
28
+
# Causes fatal ldconfig cache generation attempt on non-NixOS Linux
29
+
for mkfile in autoconf/Makefile.common.lib.in libAfter{Base,Image}/Makefile.in; do
30
+
substituteInPlace $mkfile \
31
+
--replace 'test -w /etc' 'false'
32
+
done
33
+
'';
34
+
35
nativeBuildInputs = [ pkg-config ];
36
+
buildInputs = [ libtiff fltk gtk libICE libSM dbus ];
37
38
# A strange type of bug: dbus is not immediately found by pkg-config
39
preConfigure = ''