From 75348fafae03c3e27b537c96fc8f88eeb6edc99c Mon Sep 17 00:00:00 2001 From: Tmplt Date: Wed, 20 Nov 2019 18:14:54 +0100 Subject: [PATCH] gdb: use a safePaths parameter instead --- pkgs/development/tools/misc/gdb/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index 10afc8d421e..a4a753bd14b 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -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 =