about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-12-14 21:27:28 +0000
committerGitHub <noreply@github.com>2022-12-14 21:27:28 +0000
commit39844d15de972c89c01b0710bbd7daf5ce463dd2 (patch)
tree113e3ef0227a5ff89cafbaa5395af6441eae1c5b /pkgs
parentbe7eee47fb732027598080aa661e63156fd1642f (diff)
parenta2aa9225b6185ab2144dd8f397b0bd429d30c075 (diff)
downloadnixlib-39844d15de972c89c01b0710bbd7daf5ce463dd2.tar
nixlib-39844d15de972c89c01b0710bbd7daf5ce463dd2.tar.gz
nixlib-39844d15de972c89c01b0710bbd7daf5ce463dd2.tar.bz2
nixlib-39844d15de972c89c01b0710bbd7daf5ce463dd2.tar.lz
nixlib-39844d15de972c89c01b0710bbd7daf5ce463dd2.tar.xz
nixlib-39844d15de972c89c01b0710bbd7daf5ce463dd2.tar.zst
nixlib-39844d15de972c89c01b0710bbd7daf5ce463dd2.zip
Merge pull request #205958 from Kiskae/patch-2
pkgStatic.dash: fix build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/shells/dash/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/shells/dash/default.nix b/pkgs/shells/dash/default.nix
index 3b362b4bdeee..e9b4093249c5 100644
--- a/pkgs/shells/dash/default.nix
+++ b/pkgs/shells/dash/default.nix
@@ -2,6 +2,7 @@
 , stdenv
 , buildPackages
 , autoreconfHook
+, pkg-config
 , fetchurl
 , fetchpatch
 , libedit
@@ -37,12 +38,16 @@ stdenv.mkDerivation rec {
 
   strictDeps = true;
   # configure.ac patched; remove on next release
-  nativeBuildInputs = [ autoreconfHook ];
+  nativeBuildInputs = [ autoreconfHook ]
+    ++ lib.optionals stdenv.hostPlatform.isStatic [ pkg-config ];
 
   depsBuildBuild = [ buildPackages.stdenv.cc ];
   buildInputs = [ libedit ];
 
   configureFlags = [ "--with-libedit" ];
+  preConfigure = lib.optional stdenv.hostPlatform.isStatic ''
+    export LIBS="$(pkg-config --libs --static libedit)"
+  '';
 
   enableParallelBuilding = true;