mc: add x11Support option
This commit is contained in:
parent
3ecafeb0df
commit
7e0126da2c
1 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,6 @@
|
||||||
, gpm
|
, gpm
|
||||||
, file
|
, file
|
||||||
, e2fsprogs
|
, e2fsprogs
|
||||||
, libX11
|
|
||||||
, libICE
|
, libICE
|
||||||
, perl
|
, perl
|
||||||
, zip
|
, zip
|
||||||
|
@ -17,6 +16,7 @@
|
||||||
, openssl
|
, openssl
|
||||||
, coreutils
|
, coreutils
|
||||||
, autoSignDarwinBinariesHook
|
, autoSignDarwinBinariesHook
|
||||||
|
, x11Support ? true, libX11
|
||||||
|
|
||||||
# updater only
|
# updater only
|
||||||
, writeScript
|
, writeScript
|
||||||
|
@ -43,12 +43,12 @@ stdenv.mkDerivation rec {
|
||||||
gettext
|
gettext
|
||||||
glib
|
glib
|
||||||
libICE
|
libICE
|
||||||
libX11
|
|
||||||
libssh2
|
libssh2
|
||||||
openssl
|
openssl
|
||||||
slang
|
slang
|
||||||
zip
|
zip
|
||||||
] ++ lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
|
] ++ lib.optional x11Support [ libX11 ]
|
||||||
|
++ lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ stdenv.mkDerivation rec {
|
||||||
--replace /bin/cat ${coreutils}/bin/cat
|
--replace /bin/cat ${coreutils}/bin/cat
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = lib.optionalString (!stdenv.isDarwin) ''
|
postFixup = lib.optionalString ((!stdenv.isDarwin) && x11Support) ''
|
||||||
# libX11.so is loaded dynamically so autopatch doesn't detect it
|
# libX11.so is loaded dynamically so autopatch doesn't detect it
|
||||||
patchelf \
|
patchelf \
|
||||||
--add-needed ${libX11}/lib/libX11.so \
|
--add-needed ${libX11}/lib/libX11.so \
|
||||||
|
|
Loading…
Reference in a new issue