Use nativeBuildInputs

This commit is contained in:
Matthew Bauer 2019-02-06 22:43:28 -05:00
parent 1996af425a
commit e9072ded97
2 changed files with 12 additions and 7 deletions

View file

@ -47,19 +47,21 @@ rec {
autoreconfHook
];
nativeBuildDeps =
[ buildPackages.pkgconfig
# Tests
buildPackages.git
buildPackages.mercurial
] ++ lib.optional stdenv.isLinux buildPackages.utillinuxMinimal;
buildDeps =
[ curl
bzip2 xz brotli editline
openssl sqlite boehmgc
boost
buildPackages.pkgconfig
# Tests
buildPackages.git
buildPackages.mercurial
]
++ lib.optionals stdenv.isLinux [libseccomp buildPackages.utillinuxMinimal]
++ lib.optional stdenv.isLinux libseccomp
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
++ lib.optional (stdenv.isLinux || stdenv.isDarwin)
((aws-sdk-cpp.override {

View file

@ -24,6 +24,7 @@ let
src = nix;
inherit officialRelease;
nativeBuildInputs = nativeBuildDeps;
buildInputs = tarballDeps ++ buildDeps;
configureFlags = "--enable-gc";
@ -67,6 +68,7 @@ let
name = "nix";
src = tarball;
nativeBuildInputs = nativeBuildDeps;
buildInputs = buildDeps;
preConfigure =
@ -199,6 +201,7 @@ let
name = "nix-build";
src = tarball;
nativeBuildInputs = nativeBuildDeps;
buildInputs = buildDeps;
dontInstall = false;