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
1
{ lib, stdenv, fetchurl, pkg-config
2
2
-
, libjpeg, libtiff, libpng, freetype
2
2
+
, libtiff
3
3
, fltk, gtk
4
4
-
, libX11, libXext, libICE
4
4
+
, libICE, libSM
5
5
, dbus
6
6
, fetchpatch
7
7
}:
···
24
24
})
25
25
];
26
26
27
27
+
postPatch = ''
28
28
+
# Causes fatal ldconfig cache generation attempt on non-NixOS Linux
29
29
+
for mkfile in autoconf/Makefile.common.lib.in libAfter{Base,Image}/Makefile.in; do
30
30
+
substituteInPlace $mkfile \
31
31
+
--replace 'test -w /etc' 'false'
32
32
+
done
33
33
+
'';
34
34
+
27
35
nativeBuildInputs = [ pkg-config ];
28
28
-
buildInputs = [ libjpeg libtiff libpng freetype fltk gtk libX11 libXext libICE dbus dbus ];
36
36
+
buildInputs = [ libtiff fltk gtk libICE libSM dbus ];
29
37
30
38
# A strange type of bug: dbus is not immediately found by pkg-config
31
39
preConfigure = ''