forked from mirrors/nixpkgs
pkgStatic.dash: fix build
`libedit` declares a dependency on `libncurses`, but since dash doesn't use pkg-config it doesn't register the transitive dependencies.
This commit is contained in:
parent
89583d0fc8
commit
a2aa9225b6
|
@ -2,6 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
|
, pkg-config
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, libedit
|
, libedit
|
||||||
|
@ -37,12 +38,16 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
# configure.ac patched; remove on next release
|
# configure.ac patched; remove on next release
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ]
|
||||||
|
++ lib.optionals stdenv.hostPlatform.isStatic [ pkg-config ];
|
||||||
|
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
buildInputs = [ libedit ];
|
buildInputs = [ libedit ];
|
||||||
|
|
||||||
configureFlags = [ "--with-libedit" ];
|
configureFlags = [ "--with-libedit" ];
|
||||||
|
preConfigure = lib.optional stdenv.hostPlatform.isStatic ''
|
||||||
|
export LIBS="$(pkg-config --libs --static libedit)"
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue