lol

afterstep: Fix libSM usage & build on non-NixOS Linux

OPNA2608 e1298531 9fffabf9

+11 -3
+11 -3
pkgs/applications/window-managers/afterstep/default.nix
··· 1 1 { lib, stdenv, fetchurl, pkg-config 2 - , libjpeg, libtiff, libpng, freetype 2 + , libtiff 3 3 , fltk, gtk 4 - , libX11, libXext, libICE 4 + , libICE, libSM 5 5 , dbus 6 6 , fetchpatch 7 7 }: ··· 24 24 }) 25 25 ]; 26 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 + 27 35 nativeBuildInputs = [ pkg-config ]; 28 - buildInputs = [ libjpeg libtiff libpng freetype fltk gtk libX11 libXext libICE dbus dbus ]; 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 = ''