Merge pull request #205958 from Kiskae/patch-2

pkgStatic.dash: fix build
This commit is contained in:
Jörg Thalheim 2022-12-14 21:27:28 +00:00 committed by GitHub
commit 39844d15de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;