diff options
author | Izorkin <izorkin@elven.pw> | 2023-02-05 11:23:54 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2023-02-05 11:49:43 +0300 |
commit | 7e0126da2cb15258fa2ba0f6056948a30ead56dc (patch) | |
tree | e0ceaf4d5a1a763691e31b5d4f73a0838a312f4b /pkgs/applications/file-managers/mc | |
parent | 3ecafeb0dfc616ee843cee5818e3ff55cb6f9567 (diff) |
mc: add x11Support option
Diffstat (limited to 'pkgs/applications/file-managers/mc')
-rw-r--r-- | pkgs/applications/file-managers/mc/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/file-managers/mc/default.nix b/pkgs/applications/file-managers/mc/default.nix index 8b54d79622a42..a03a1addb4374 100644 --- a/pkgs/applications/file-managers/mc/default.nix +++ b/pkgs/applications/file-managers/mc/default.nix @@ -6,7 +6,6 @@ , gpm , file , e2fsprogs -, libX11 , libICE , perl , zip @@ -17,6 +16,7 @@ , openssl , coreutils , autoSignDarwinBinariesHook +, x11Support ? true, libX11 # updater only , writeScript @@ -43,12 +43,12 @@ stdenv.mkDerivation rec { gettext glib libICE - libX11 libssh2 openssl slang zip - ] ++ lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ]; + ] ++ lib.optional x11Support [ libX11 ] + ++ lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ]; enableParallelBuilding = true; @@ -71,7 +71,7 @@ stdenv.mkDerivation rec { --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 patchelf \ --add-needed ${libX11}/lib/libX11.so \ |