afterstep: Fix libSM usage & build on non-NixOS Linux
This commit is contained in:
parent
9fffabf9ee
commit
e12985318c
|
@ -1,7 +1,7 @@
|
||||||
{ lib, stdenv, fetchurl, pkg-config
|
{ lib, stdenv, fetchurl, pkg-config
|
||||||
, libjpeg, libtiff, libpng, freetype
|
, libtiff
|
||||||
, fltk, gtk
|
, fltk, gtk
|
||||||
, libX11, libXext, libICE
|
, libICE, libSM
|
||||||
, dbus
|
, dbus
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
@ -24,8 +24,16 @@ stdenv.mkDerivation rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Causes fatal ldconfig cache generation attempt on non-NixOS Linux
|
||||||
|
for mkfile in autoconf/Makefile.common.lib.in libAfter{Base,Image}/Makefile.in; do
|
||||||
|
substituteInPlace $mkfile \
|
||||||
|
--replace 'test -w /etc' 'false'
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ libjpeg libtiff libpng freetype fltk gtk libX11 libXext libICE dbus dbus ];
|
buildInputs = [ libtiff fltk gtk libICE libSM dbus ];
|
||||||
|
|
||||||
# A strange type of bug: dbus is not immediately found by pkg-config
|
# A strange type of bug: dbus is not immediately found by pkg-config
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
|
Loading…
Reference in a new issue