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
commiteb91037e7b5de99d887b4f58287e99abeeea05de
authorWill Dietz <w@wdtz.org>
dateThu 27 Sep 2018, 16:38 (8 years ago)
parent196c405
pkgs/applications/editors/jetbrains/common.nix+1−1
@@ -26,7 +26,7 @@ with stdenv; lib.makeOverridable mkDerivation rec {
2626 '';
2727 };
2828
29− buildInputs = [ makeWrapper patchelf p7zip unzip ];
29+ nativeBuildInputs = [ makeWrapper patchelf p7zip unzip ];
3030
3131 patchPhase = ''
3232 get_file_size() {
pkgs/applications/misc/ipmiview/default.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 sha256 = "1wp22wm7smlsb25x0cck4p660cycfczxj381930crd1qrf68mw4h";
1111 };
1212
13− buildInputs = [ patchelf makeWrapper ];
13+ nativeBuildInputs = [ patchelf makeWrapper ];
1414
1515 buildPhase = with xorg; ''
1616 patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/xawt/libmawt.so
pkgs/applications/networking/instant-messengers/bluejeans/default.nix+1−1
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 sha256 = "0sbv742pzqd2cxn3kq10lfi16jah486i9kyrmi8l1rpb9fhyw2m1";
1414 };
1515
16− buildInputs = [ patchelf rpmextract ];
16+ nativeBuildInputs = [ patchelf rpmextract ];
1717
1818 libPath =
1919 stdenv.lib.makeLibraryPath
pkgs/applications/networking/mailreaders/inboxer/default.nix+2−1
@@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
2222 unpackPhase = ''
2323 ar p $src data.tar.xz | tar xJ
2424 '';
25− buildInputs = [ binutils patchelf makeWrapper ];
25+ nativeBuildInputs = [ patchelf makeWrapper ];
26+ buildInputs = [ binutils ];
2627
2728 preFixup = with stdenv.lib; let
2829 lpath = makeLibraryPath [
pkgs/applications/networking/spideroak/default.nix+1−1
@@ -57,7 +57,7 @@ in stdenv.mkDerivation {
5757 sed -i 's/^Exec=.*/Exec=spideroak/' $out/share/applications/SpiderOakONE.desktop
5858 '';
5959
60− buildInputs = [ patchelf makeWrapper ];
60+ nativeBuildInputs = [ patchelf makeWrapper ];
6161
6262 meta = {
6363 homepage = https://spideroak.com;
pkgs/applications/science/logic/tptp/default.nix+2−1
@@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
1212 sha256 = "0slqbqv4y43wz6wnh72s4n540ssapah0d12mndi0c7xr04kf2v2d";
1313 };
1414
15− buildInputs = [ tcsh yap perl patchelf ];
15+ nativeBuildInputs = [ patchelf ];
16+ buildInputs = [ tcsh yap perl ];
1617
1718 installPhase = ''
1819 sharedir=$out/share/tptp
pkgs/applications/virtualization/virtualbox/default.nix+2−2
@@ -32,12 +32,12 @@ in stdenv.mkDerivation {
3232
3333 outputs = [ "out" "modsrc" ];
3434
35− nativeBuildInputs = [ pkgconfig which docbook_xsl docbook_xml_dtd_43 ];
35+ nativeBuildInputs = [ pkgconfig which docbook_xsl docbook_xml_dtd_43 patchelfUnstable ];
3636
3737 buildInputs =
3838 [ iasl dev86 libxslt libxml2 xproto libX11 libXext libXcursor libIDL
3939 libcap glib lvm2 alsaLib curl libvpx pam xorriso makeself perl
40− libXmu libpng patchelfUnstable python ]
40+ libXmu libpng python ]
4141 ++ optional javaBindings jdk
4242 ++ optional pythonBindings python # Python is needed even when not building bindings
4343 ++ optional pulseSupport libpulseaudio
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix+2−1
@@ -36,7 +36,8 @@ stdenv.mkDerivation {
3636
3737 NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration";
3838
39− buildInputs = [ patchelf cdrkit makeWrapper dbus ] ++ kernel.moduleBuildDependencies;
39+ nativeBuildInputs = [ patchelf makeWrapper ];
40+ buildInputs = [ cdrkit dbus ] ++ kernel.moduleBuildDependencies;
4041
4142 installPhase = ''
4243 mkdir -p $out
pkgs/development/compilers/gcc-arm-embedded/default.nix+1−1
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
2121 sha256 = sha256;
2222 };
2323
24− buildInputs = [ bzip2 patchelf ];
24+ nativeBuildInputs = [ bzip2 patchelf ];
2525
2626 dontPatchELF = true;
2727
pkgs/development/compilers/mentor/default.nix+1−1
@@ -10,7 +10,7 @@ let
1010 stdenv.mkDerivation rec {
1111 inherit name src;
1212
13− buildInputs = [ patchelf ];
13+ nativeBuildInputs = [ patchelf ];
1414
1515 buildCommand = ''
1616 # Unpack tarball
pkgs/development/compilers/mlton/default.nix+2−1
@@ -38,7 +38,8 @@ stdenv.mkDerivation rec {
3838
3939 sourceRoot = name;
4040
41− buildInputs = [ gmp ] ++ stdenv.lib.optional stdenv.isLinux patchelf;
41+ buildInputs = [ gmp ];
42+ nativeBuildInputs = stdenv.lib.optional stdenv.isLinux patchelf;
4243
4344 makeFlags = [ "all-no-docs" ];
4445
pkgs/development/compilers/opendylan/bin.nix+1−1
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
1515 }
1616 else throw "platform ${stdenv.hostPlatform.system} not supported.";
1717
18− buildInputs = [ patchelf boehmgc gnused makeWrapper ];
18+ nativeBuildInputs = [ patchelf boehmgc gnused makeWrapper ];
1919
2020 buildCommand = ''
2121 mkdir -p "$out"
pkgs/development/libraries/scmccid/default.nix+1−1
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 })
1616 else throw "Architecture not supported";
1717
18− buildInputs = [ patchelf ];
18+ nativeBuildInputs = [ patchelf ];
1919
2020 installPhase = ''
2121 RPATH=${libusb.out}/lib:${stdenv.cc.libc.out}/lib
pkgs/games/openarena/default.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 sha256 = "0jmc1cmdz1rcvqc9ilzib1kilpwap6v0d331l6q53wsibdzsz3ss";
1111 };
1212
13− buildInputs = [ pkgs.unzip patchelf makeWrapper];
13+ nativeBuildInputs = [ pkgs.unzip patchelf makeWrapper];
1414
1515 installPhase = let
1616 gameDir = "$out/openarena-$version";
pkgs/games/planetaryannihilation/default.nix+1−1
@@ -22,7 +22,7 @@ stdenv.mkDerivation {
2222 inherit (config.planetary_annihilation) url sha256;
2323 };
2424
25− buildInputs = [ patchelf makeWrapper ];
25+ nativeBuildInputs = [ patchelf makeWrapper ];
2626
2727 installPhase = ''
2828 mkdir -p $out/{bin,lib}
pkgs/games/ue4demos/default.nix+1−1
@@ -5,7 +5,7 @@ let
55 stdenv.mkDerivation rec {
66 inherit name src;
77
8− buildInputs = [ unzip patchelf ];
8+ nativeBuildInputs = [ unzip patchelf ];
99
1010 rtdeps = stdenv.lib.makeLibraryPath
1111 [ xorg.libXxf86vm xorg.libXext openal ]
pkgs/misc/cups/drivers/samsung/4.00.39/default.nix+2−1
@@ -26,7 +26,8 @@ in stdenv.mkDerivation rec {
2626 sha256 = "144b4xggbzjfq7ga5nza7nra2cf6qn63z5ls7ba1jybkx1vm369k";
2727 };
2828
29− buildInputs = [ cups' gcc ghostscript glibc patchelf ];
29+ nativeBuildInputs = [ patchelf ];
30+ buildInputs = [ cups' gcc ghostscript glibc ];
3031
3132 inherit gcc ghostscript glibc;
3233 cups = cups';
pkgs/misc/drivers/epkowa/default.nix+1−1
@@ -30,7 +30,7 @@ let plugins = {
3030 version = "1.0.1";
3131 pluginVersion = "2.1.2-1";
3232
33− buildInputs = [ patchelf rpm ];
33+ nativeBuildInputs = [ patchelf rpm ];
3434 src = fetchurl {
3535 url = "https://download2.ebz.epson.net/iscan/plugin/gt-x770/rpm/x64/iscan-gt-x770-bundle-${version}.x64.rpm.tar.gz";
3636 sha256 = "0m9c60rszzdvq1pqfzygzzrjycm1giy465lj29108j7hsnfcv56r";
pkgs/tools/security/gorilla-bin/default.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 sha256 = "19ir6x4c01825hpx2wbbcxkk70ymwbw4j03v8b2xc13ayylwzx0r";
1111 };
1212
13− buildInputs = [ patchelf makeWrapper ];
13+ nativeBuildInputs = [ patchelf makeWrapper ];
1414 phases = [ "unpackPhase" "installPhase" ];
1515
1616 unpackCmd = ''