gdb: use a safePaths parameter instead

This commit is contained in:
Tmplt 2019-11-20 18:14:54 +01:00
parent a3e008420e
commit 75348fafae

View file

@ -8,6 +8,7 @@
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
, guile ? null
, safePaths ? [ stdenv.cc.cc.lib ]
}:
@ -70,7 +71,7 @@ stdenv.mkDerivation rec {
"--with-gmp=${gmp.dev}"
"--with-mpfr=${mpfr.dev}"
"--with-expat" "--with-libexpat-prefix=${expat.dev}"
"--with-auto-load-safe-path=${stdenv.cc.cc.lib}"
"--with-auto-load-safe-path=${builtins.concatStringsSep ":" safePaths}"
] ++ stdenv.lib.optional (!pythonSupport) "--without-python";
postInstall =