about summary refs log tree commit diff
path: root/pkgs/shells/dash
diff options
context:
space:
mode:
authorKiskae <Kiskae@users.noreply.github.com>2022-12-28 16:07:30 +0100
committerKiskae <Kiskae@users.noreply.github.com>2022-12-28 16:07:30 +0100
commitb08fa40e69294c2b745cc9bbff188839dfcc915a (patch)
tree0198866e4f79f550f9ef6a46d2cc2b289628575e /pkgs/shells/dash
parent8df1ea326995e50d3381bdf0b82126e0e1aed8db (diff)
pkgsStatic.dash: fix build
pkg-config wrapper does not provide a named binary.
Diffstat (limited to 'pkgs/shells/dash')
-rw-r--r--pkgs/shells/dash/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/shells/dash/default.nix b/pkgs/shells/dash/default.nix
index e9b4093249c53..e6113c0d76962 100644
--- a/pkgs/shells/dash/default.nix
+++ b/pkgs/shells/dash/default.nix
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
 
   configureFlags = [ "--with-libedit" ];
   preConfigure = lib.optional stdenv.hostPlatform.isStatic ''
-    export LIBS="$(pkg-config --libs --static libedit)"
+    export LIBS="$(''${PKG_CONFIG:-pkg-config} --libs --static libedit)"
   '';
 
   enableParallelBuilding = true;