tree-wide: patchelf used during build -> nativeBuildInputs

In a few cases it wasn't clear so I left them as-is.

While visiting these moved other things to nativeBuildInputs
when it was clear they were one of these cases:

* makeWrapper
* archive utilities (in order to unpack src)
  * a few of these might no longer be needed but leaving for another day
This commit is contained in:
Will Dietz
2018-09-28 11:43:16 -05:00
parent 196c405efb
commit eb91037e7b
19 changed files with 25 additions and 20 deletions
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
sha256 = sha256;
};
buildInputs = [ bzip2 patchelf ];
nativeBuildInputs = [ bzip2 patchelf ];
dontPatchELF = true;
@@ -10,7 +10,7 @@ let
stdenv.mkDerivation rec {
inherit name src;
buildInputs = [ patchelf ];
nativeBuildInputs = [ patchelf ];
buildCommand = ''
# Unpack tarball
+2 -1
View File
@@ -38,7 +38,8 @@ stdenv.mkDerivation rec {
sourceRoot = name;
buildInputs = [ gmp ] ++ stdenv.lib.optional stdenv.isLinux patchelf;
buildInputs = [ gmp ];
nativeBuildInputs = stdenv.lib.optional stdenv.isLinux patchelf;
makeFlags = [ "all-no-docs" ];
+1 -1
View File
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
}
else throw "platform ${stdenv.hostPlatform.system} not supported.";
buildInputs = [ patchelf boehmgc gnused makeWrapper ];
nativeBuildInputs = [ patchelf boehmgc gnused makeWrapper ];
buildCommand = ''
mkdir -p "$out"
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
})
else throw "Architecture not supported";
buildInputs = [ patchelf ];
nativeBuildInputs = [ patchelf ];
installPhase = ''
RPATH=${libusb.out}/lib:${stdenv.cc.libc.out}/lib