Merge pull request #186564 from Artturin/crossevalfixes

Fixes for cross-compilation
This commit is contained in:
Artturi 2022-08-27 17:49:00 +03:00 committed by GitHub
commit 79c42aa06c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
82 changed files with 149 additions and 158 deletions

View File

@ -17,9 +17,10 @@ stdenv.mkDerivation rec {
categories = [ "Development" ];
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
fontconfig freetype glib gsettings-desktop-schemas gtk jdk libX11
libXrender libXtst libsecret makeWrapper zlib
libXrender libXtst libsecret zlib
] ++ lib.optional (webkitgtk != null) webkitgtk;
buildCommand = ''

View File

@ -22,7 +22,7 @@ rec {
launcher = runCommand "octave-kernel-launcher" {
inherit octave;
python = python3.withPackages (ps: [ ps.traitlets ps.jupyter_core ps.ipykernel ps.metakernel kernel ]);
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
} ''
mkdir -p $out/bin

View File

@ -338,7 +338,7 @@ rec {
if vimrcFile != null then vimrcFile
else if vimrcConfig != null then mkVimrcFile vimrcConfig
else throw "at least one of vimrcConfig and vimrcFile must be specified";
bin = runCommand "${name}-bin" { buildInputs = [ makeWrapper ]; } ''
bin = runCommand "${name}-bin" { nativeBuildInputs = [ makeWrapper ]; } ''
vimrc=${lib.escapeShellArg vimrc}
gvimrc=${if gvimrcFile != null then lib.escapeShellArg gvimrcFile else ""}

View File

@ -6,11 +6,10 @@ let pkg = import ./base.nix {
pkgSha256 = "00906lky0z1m0bdqnjmzxgcb19dzvljhddhh42lixyr53sjp94cc";
};
in callPackage pkg {
buildInputs = [ glib gtk3 libxml2 gnuplot libmirage makeWrapper
gnome.adwaita-icon-theme gdk-pixbuf librsvg intltool
buildInputs = [ glib gtk3 libxml2 gnuplot libmirage gnome.adwaita-icon-theme gdk-pixbuf librsvg
python3Packages.python python3Packages.pygobject3 python3Packages.matplotlib ];
drvParams = {
nativeBuildInputs = [ gobject-introspection cmake ];
nativeBuildInputs = [ gobject-introspection cmake makeWrapper intltool ];
postFixup = ''
wrapProgram $out/bin/image-analyzer \
--set PYTHONPATH "$PYTHONPATH" \

View File

@ -1,12 +1,12 @@
{ pname, version, pkgSha256 }:
{ lib, stdenv, fetchurl, cmake, pkg-config, buildInputs, drvParams ? {} }:
attrs@{ lib, stdenv, fetchurl, cmake, pkg-config, buildInputs, drvParams ? {}, ... }:
stdenv.mkDerivation ( rec {
inherit pname version buildInputs;
src = fetchurl {
url = "mirror://sourceforge/cdemu/${pname}-${version}.tar.xz";
sha256 = pkgSha256;
};
nativeBuildInputs = [ pkg-config cmake ];
nativeBuildInputs = (attrs.nativeBuildInputs or [ ]) ++ [ pkg-config cmake ];
setSourceRoot = ''
mkdir build
cd build

View File

@ -5,8 +5,8 @@ let pkg = import ./base.nix {
pkgSha256 = "1prrdhv0ia0axc6b73crszqzh802wlkihz6d100yvg7wbgmqabd7";
};
in callPackage pkg {
buildInputs = [ python3Packages.python python3Packages.dbus-python python3Packages.pygobject3
intltool makeWrapper ];
nativeBuildInputs = [ makeWrapper intltool ];
buildInputs = [ python3Packages.python python3Packages.dbus-python python3Packages.pygobject3 ];
drvParams = {
postFixup = ''
wrapProgram $out/bin/cdemu \

View File

@ -5,5 +5,6 @@ let pkg = import ./base.nix {
pkgSha256 = "16g6fv1lxkdmbsy6zh5sj54dvgwvm900fd18aq609yg8jnqm644d";
};
in callPackage pkg {
buildInputs = [ glib libao libmirage intltool ];
nativeBuildInputs = [ intltool ];
buildInputs = [ glib libao libmirage ];
}

View File

@ -8,10 +8,9 @@ let
};
inherit (python3Packages) python pygobject3;
in callPackage pkg {
buildInputs = [ python pygobject3 gtk3 glib libnotify intltool makeWrapper
gnome.adwaita-icon-theme gdk-pixbuf librsvg ];
buildInputs = [ python pygobject3 gtk3 glib libnotify gnome.adwaita-icon-theme gdk-pixbuf librsvg ];
drvParams = {
nativeBuildInputs = [ gobject-introspection cmake ];
nativeBuildInputs = [ gobject-introspection cmake makeWrapper intltool ];
postFixup = ''
wrapProgram $out/bin/gcdemu \
--set PYTHONPATH "$PYTHONPATH" \

View File

@ -8,11 +8,11 @@ let pkg = import ./base.nix {
pkgSha256 = "0f8i2ha44rykkk3ac2q8zsw3y1zckw6qnf6zvkyrj3qqbzhrf3fm";
};
in callPackage pkg {
buildInputs = [ glib libsndfile zlib bzip2 xz libsamplerate intltool ];
buildInputs = [ glib libsndfile zlib bzip2 xz libsamplerate ];
drvParams = {
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${placeholder "out"}/share/gir-1.0";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "${placeholder "out"}/lib/girepository-1.0";
nativeBuildInputs = [ cmake gobject-introspection pkg-config ];
nativeBuildInputs = [ cmake gobject-introspection pkg-config intltool ];
propagatedBuildInputs = [ pcre util-linux libselinux libsepol ];
};
}

View File

@ -15,9 +15,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256-VK9FCqIwHGmeJe5lk12lpAGcsC1aPRBiI+XjACXjDd4=";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite
readline ffmpeg makeWrapper netcdf geos postgresql libmysqlclient blas
readline ffmpeg netcdf geos postgresql libmysqlclient blas
libLAS proj-datumgrid zstd wrapGAppsHook ]
++ lib.optionals stdenv.isLinux [ cairo pdal wxGTK31 ]
++ lib.optional stdenv.isDarwin wxmac

View File

@ -35,7 +35,7 @@ bundlerApp {
exes = [ "image_optim" ];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/image_optim \

View File

@ -16,8 +16,9 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/timelapse-deflicker --set PERL5LIB $PERL5LIB
'';
nativeBuildInputs = [ makeWrapper ];
buildInputs = with perlPackages; [
makeWrapper perl
perl
ImageMagick TermProgressBar ImageExifTool
FileType ClassMethodMaker
];

View File

@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "10zxih7gmyhq0az1mnsw2x563l4bbwcns794s4png8rf4d6hjszm";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [ perl libX11 libXinerama libjpeg libpng libtiff
librsvg glib gtk2 libXxf86vm libXext poppler xine-lib ghostscript makeWrapper ];
librsvg glib gtk2 libXxf86vm libXext poppler xine-lib ghostscript ];
# The program tries to dlopen Xxf86vm, Xext and Xinerama, so we use the
# trick on NIX_LDFLAGS and dontPatchELF to make it find them.

View File

@ -7,7 +7,7 @@ bundlerApp rec {
inherit ruby;
gemdir = ./.;
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
passthru.updateScript = bundlerUpdateScript "gollum";

View File

@ -18,9 +18,10 @@ stdenv.mkDerivation rec {
sha256 = "0skrc8r4wh4mjfgw1c94awr5sacfb9nfsbm4frikanc9xsy16ksr";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ which highlight ]
++ (with perlPackages; [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext
TimeDate gettext DBFile CGISession CGIFormBuilder LocaleGettext
RpcXML XMLSimple ImageMagick YAML YAMLLibYAML HTMLTree AuthenPassphrase
NetOpenIDConsumer LWPxParanoidAgent CryptSSLeay ])
++ lib.optionals docutilsSupport [

View File

@ -30,7 +30,7 @@ in bundlerApp {
then ./full
else ./basic;
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/jekyll --prefix PATH : ${rubyWrapper}/bin

View File

@ -12,10 +12,10 @@ mkDerivation rec {
};
# LaTeX is used from $PATH, as people often want to have it with extra pkgs
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [
qtbase qtsvg python3 file/*for libmagic*/ bc
hunspell makeWrapper # enchant
hunspell # enchant
];
configureFlags = [

View File

@ -24,11 +24,10 @@ in stdenv.mkDerivation rec {
preConfigure = "./autogen.sh --libexecdir=$(out)/bin";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper libtool ];
buildInputs = [
glib libwnck libnotify dbus-glib makeWrapper
glib libwnck libnotify dbus-glib
gsettings-desktop-schemas gnome.gnome-common
libtool
];
configureFlags = [ "--libexecdir=$(out)/bin" ];

View File

@ -9,9 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "0g5a7a680b05x27apz0y1ldl5csxpp152wqi42s107jymbp0s20j";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [
glib libwnck libnotify dbus-glib makeWrapper
glib libwnck libnotify dbus-glib
gsettings-desktop-schemas
];

View File

@ -46,13 +46,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoreconfHook
pkg-config
makeWrapper
];
buildInputs = [
cairo
glib
libnotify
makeWrapper
rofi-unwrapped
wl-clipboard
xclip

View File

@ -13,9 +13,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-cf0QTOzhLyTcbJryCQoTVzU8kfrPV6SLpqi4s36X5N0=";
};
nativeBuildInputs = [ makeWrapper which ];
buildInputs =
[boost] ++
(with perlPackages; [ perl makeWrapper which
(with perlPackages; [ perl
EncodeLocale MathClipper ExtUtilsXSpp
MathConvexHullMonotoneChain MathGeometryVoronoi MathPlanePath Moo
IOStringy ClassXSAccessor Wx GrowlGNTP NetDBus ImportInto XMLSAX

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-IWHj//ZZOdfOCBJHnPnKNoYNtWl/f8H6ARYe1AkqB0U=";
};
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
dontBuild = true;

View File

@ -41,7 +41,8 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "1zg13wajsfrl3hli6sihn47db08w037jjq9vgr6m5sjh8r1jb9iy";
};
buildInputs = [ makeWrapper ] ++ otherDependencies ++ pythonDependencies;
nativeBuildInputs = [ makeWrapper ];
buildInputs = otherDependencies ++ pythonDependencies;
installPhase = ''
runHook preInstall

View File

@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
sha256 = "0cm1hvi68iqgjsg15xdii271pklgzjn9j9afb1c460z71kgy3wz2";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
perl
makeWrapper
];
propagatedBuildInputs = with perlPackages; [

View File

@ -7,7 +7,7 @@ in symlinkJoin {
paths = [ pidgin ] ++ plugins;
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/pidgin \

View File

@ -137,7 +137,7 @@ let
hash = "sha256-vLUEvOSBUyAJIWHOAIkTqTW/W6TkgmeyRzQbquZP810=";
};
buildInputs = [ xar cpio makeWrapper ];
nativeBuildInputs = [ xar cpio makeWrapper ];
unpackPhase = ''
xar -xf $src

View File

@ -8,9 +8,9 @@ stdenv.mkDerivation rec {
dontStrip = true;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
perl
makeWrapper
] ++ (with perlPackages; [
FileRemove
DigestSHA1

View File

@ -32,10 +32,7 @@ let
];
} // (attrs.meta or {});
buildInputs = [
dpkg
makeWrapper
];
nativeBuildInputs = [ makeWrapper dpkg ];
libs = attrs.libs or [
atk

View File

@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
sha256 = "0lqrash677b09zxdlxp89z6k02y4i23mbqg83956dwl69wc53dan";
};
nativeBuildInputs = [ pkg-config texinfo python3 ];
nativeBuildInputs = [ pkg-config texinfo python3 makeWrapper ];
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
gtksourceview pango gettext
makeWrapper gsettings-desktop-schemas hicolor-icon-theme ssw
gsettings-desktop-schemas hicolor-icon-theme ssw
];
doCheck = false;

View File

@ -28,8 +28,8 @@ stdenv.mkDerivation {
pname = "sage-tests";
inherit src;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
makeWrapper
sage-with-env
];

View File

@ -30,7 +30,6 @@ assert (!blas.isILP64) && (!lapack.isILP64);
let
buildInputs = [
pythonEnv # for patchShebangs
makeWrapper
pkg-config
blas lapack
singular
@ -73,7 +72,7 @@ let
[]
);
allInputs = lib.remove null (buildInputs ++ pythonEnv.extraLibs);
allInputs = lib.remove null (buildInputs ++ pythonEnv.extraLibs ++ [ makeWrapper ]);
transitiveDeps = lib.unique (builtins.concatLists (map transitiveClosure allInputs ));
# fix differences between spkg and sage names
# (could patch sage instead, but this is more lightweight and also works for packages depending on sage)

View File

@ -17,9 +17,8 @@ stdenv.mkDerivation rec {
pname = "sage";
src = sage-with-env.env.lib.src;
buildInputs = [
makeWrapper
] ++ lib.optionals requireSageTests [
nativeBuildInputs = [ makeWrapper ];
buildInputs = lib.optionals requireSageTests [
# This is a hack to make sure sage-tests is evaluated. It doesn't acutally
# produce anything of value, it just decouples the tests from the build.
sage-tests

View File

@ -11,7 +11,7 @@ symlinkJoin {
omshell
];
buildInputs = [ gnumake makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/OMEdit \

View File

@ -129,8 +129,9 @@ stdenv.mkDerivation {
inherit src;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
rubyEnv rubyEnv.wrappedRuby rubyEnv.bundler tzdata git nettools makeWrapper
rubyEnv rubyEnv.wrappedRuby rubyEnv.bundler tzdata git nettools
];
patches = [

View File

@ -38,11 +38,11 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs =
[ yasm cmake pkg-config ]
[ yasm cmake pkg-config makeWrapper ]
++ lib.optional withQT wrapQtAppsHook;
buildInputs = [
zlib gettext libvdpau libva libXv sqlite fribidi fontconfig
freetype alsa-lib libXext libGLU makeWrapper
freetype alsa-lib libXext libGLU
] ++ lib.optional withX264 x264
++ lib.optional withX265 x265
++ lib.optional withXvid xvidcore

View File

@ -25,11 +25,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-LUgrGgpPvV2IFDRRcDInnYCMtkBeIt2R721zNTRGS5k=";
};
nativeBuildInputs = [ autoconf automake ];
buildInputs = [
libtool
makeWrapper
];
nativeBuildInputs = [ autoconf automake makeWrapper libtool ];
propagatedBuildInputs = [
libffi
gmp

View File

@ -1,4 +1,4 @@
{ pkgs, lib }:
{ pkgs, lib, makeWrapper }:
let
@ -18,7 +18,7 @@ let
elmVersion = drv.version;
registryDat = ./registry.dat;
};
buildTools = drv.buildTools or [] ++ [ pkgs.makeWrapper ];
buildTools = drv.buildTools or [] ++ [ makeWrapper ];
jailbreak = true;
postInstall = ''
wrapProgram $out/bin/elm \
@ -214,7 +214,7 @@ in lib.makeScope pkgs.newScope (self: with self; {
elm-pages = nodePkgs."elm-pages".overrideAttrs (
old: {
buildInputs = old.buildInputs ++ [ pkgs.makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
# can't use `patches = [ <patch_file> ]` with a nodePkgs derivation;
# need to patch in one of the build phases instead.

View File

@ -24,8 +24,7 @@ stdenv.mkDerivation rec {
})
];
buildInputs =
[ pkg-config bison flex makeWrapper ];
nativeBuildInputs = [ pkg-config bison flex makeWrapper ];
# Intercal invokes gcc, so we need an explicit PATH
postInstall = ''

View File

@ -44,8 +44,8 @@ stdenv.mkDerivation rec {
configureFlags = [ "-ocamlfind ${ocamlPackages.findlib}/bin/ocamlfind" ];
buildInputs = [ which perl jdk openssl coreutils zlib ncurses
makeWrapper gcc binutils gnumake nodejs
nativeBuildInputs = [ gcc binutils nodejs which makeWrapper ];
buildInputs = [ perl jdk openssl coreutils zlib ncurses
] ++ (with ocamlPackages; [
ocaml findlib ssl camlzip ulex ocamlgraph camlp4
]);

View File

@ -36,7 +36,7 @@ let
paths = [ open-watcom ];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
mkdir $out/bin

View File

@ -13,8 +13,9 @@ stdenv.mkDerivation {
fetchSubmodules = true;
};
nativeBuildInputs = [ makeWrapper autoconf automake ];
buildInputs = (if stdenv.hostPlatform.system == "i686-linux" then [ mps ] else [ boehmgc ]) ++ [
opendylan-bootstrap boehmgc gnused autoconf automake perl makeWrapper
opendylan-bootstrap boehmgc perl
];
preConfigure = if stdenv.hostPlatform.system == "i686-linux" then ''

View File

@ -56,7 +56,7 @@ let
in lib.appendToName "with-plugins" ( symlinkJoin {
inherit (yosys) name;
paths = paths ++ [ yosys ] ;
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/yosys \
--set NIX_YOSYS_PLUGIN_DIRS $out/share/yosys/plugins \

View File

@ -3,7 +3,7 @@
symlinkJoin {
inherit (idris-no-deps) name src meta;
paths = [ idris-no-deps ];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/idris \
--run 'export IDRIS_CC=''${IDRIS_CC:-${stdenv.cc}/bin/cc}' \

View File

@ -10,7 +10,7 @@ lib.appendToName "with-packages" (symlinkJoin {
paths = paths ++ [idris] ;
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/idris \

View File

@ -37,7 +37,7 @@ buildRebar3 {
inherit src version;
buildInputs = [ erlang makeWrapper ];
nativeBuildInputs = [ makeWrapper erlang ];
beamDeps = [ proper ];
patches = [ ./fix-rebar-config.patch ./dedup-ebins.patch ] ++ patches;
doCheck = true;

View File

@ -22,9 +22,9 @@ stdenv.mkDerivation {
sha256 = "b112d7843f65217e3b5a9d40461698ef8dab7cbbe830af21216dfb924dc88a2f";
};
nativeBuildInputs = [ unzip ];
nativeBuildInputs = [ flex bison unzip makeWrapper ];
buildInputs = [
flex bison ncurses buddy tecla gmpxx libsigsegv makeWrapper cln yices
ncurses buddy tecla gmpxx libsigsegv cln yices
];
hardeningDisable = [ "stackprotector" ] ++

View File

@ -19,7 +19,7 @@ let
in buildEnv {
name = "aspell-env";
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
paths = [ aspell ] ++ dicts;
postBuild = ''
# Construct wrappers in /bin

View File

@ -5,7 +5,7 @@ symlinkJoin {
paths = [ gsignond ] ++ plugins;
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/gsignond \

View File

@ -45,7 +45,7 @@ let
withPlugins = plugins: let
vapoursynthWithPlugins = vapoursynth.withPlugins plugins;
in runCommand "${unwrapped.name}-with-plugins" {
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
passthru = { withPlugins = plugins': withPlugins (plugins ++ plugins'); };
} ''
mkdir -p $out/bin

View File

@ -309,9 +309,8 @@ let
sha256 = "12l7ir3q29v06jx0zng5cvlbmap7p709ka3ik6x29lw334qshm9b";
};
nativeBuildInputs = [ pkgs.makeWrapper ];
buildInputs = [
pkgs.makeWrapper
# needed for GSETTINGS_SCHEMAS_PATH
pkgs.gsettings-desktop-schemas pkgs.glib pkgs.gtk3

View File

@ -2,8 +2,9 @@
deployAndroidPackage {
inherit package os;
buildInputs = [ makeWrapper ] ++
lib.optionals (os == "linux") [ autoPatchelfHook pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 pkgs.libcxx ];
nativeBuildInputs = [ makeWrapper ]
++ lib.optionals (os == "linux") [ autoPatchelfHook ];
buildInputs = lib.optionals (os == "linux") [ pkgs.glibc pkgs.zlib pkgs.ncurses5 pkgs_i686.glibc pkgs_i686.zlib pkgs_i686.ncurses5 pkgs.libcxx ];
patchInstructions = ''
${lib.optionalString (os == "linux") ''
addAutoPatchelfSearchPath $packageBaseDir/lib

View File

@ -2,9 +2,9 @@
deployAndroidPackage {
inherit package os;
buildInputs = [ makeWrapper ]
++ lib.optionals (os == "linux") (with pkgs; [
autoPatchelfHook
nativeBuildInputs = [ makeWrapper ]
++ lib.optionals (os == "linux") [ autoPatchelfHook ];
buildInputs = lib.optionals (os == "linux") (with pkgs; [
glibc
libcxx
libGL

View File

@ -2,8 +2,8 @@
deployAndroidPackage {
name = "androidsdk";
buildInputs = [ autoPatchelfHook makeWrapper ]
++ lib.optional (os == "linux") [ pkgs.glibc pkgs.xorg.libX11 pkgs.xorg.libXext pkgs.xorg.libXdamage pkgs.xorg.libxcb pkgs.xorg.libXfixes pkgs.xorg.libXrender pkgs.fontconfig.lib pkgs.freetype pkgs.libGL pkgs.zlib pkgs.ncurses5 pkgs.libpulseaudio pkgs_i686.glibc pkgs_i686.xorg.libX11 pkgs_i686.xorg.libXrender pkgs_i686.fontconfig pkgs_i686.freetype pkgs_i686.zlib ];
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
buildInputs = lib.optional (os == "linux") [ pkgs.glibc pkgs.xorg.libX11 pkgs.xorg.libXext pkgs.xorg.libXdamage pkgs.xorg.libxcb pkgs.xorg.libXfixes pkgs.xorg.libXrender pkgs.fontconfig.lib pkgs.freetype pkgs.libGL pkgs.zlib pkgs.ncurses5 pkgs.libpulseaudio pkgs_i686.glibc pkgs_i686.xorg.libX11 pkgs_i686.xorg.libXrender pkgs_i686.fontconfig pkgs_i686.freetype pkgs_i686.zlib ];
inherit package os;
patchInstructions = ''

View File

@ -3,9 +3,10 @@
deployAndroidPackage {
name = "androidsdk";
inherit os package;
buildInputs = [ makeWrapper ]
++ lib.optional (os == "linux") (
(with pkgs; [ autoPatchelfHook glibc freetype fontconfig fontconfig.lib])
nativeBuildInputs = [ makeWrapper ]
++ lib.optionals (os == "linux") [ autoPatchelfHook ];
buildInputs = lib.optional (os == "linux") (
(with pkgs; [ glibc freetype fontconfig fontconfig.lib])
++ (with pkgs.xorg; [ libX11 libXrender libXext ])
++ (with pkgs_i686; [ glibc xorg.libX11 xorg.libXrender xorg.libXext fontconfig.lib freetype zlib ])
);

View File

@ -39,7 +39,7 @@ final: prev: {
};
"@hyperspace/cli" = prev."@hyperspace/cli".override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
buildInputs = [ final.node-gyp-build ];
postInstall = ''wrapProgram "$out/bin/hyp" --prefix PATH : ${ lib.makeBinPath [ nodejs ] }'';
};
@ -63,7 +63,7 @@ final: prev: {
mdctl-cli = final."@medable/mdctl-cli";
autoprefixer = prev.autoprefixer.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/autoprefixer" \
--prefix NODE_PATH : ${final.postcss}/lib/node_modules
@ -74,7 +74,7 @@ final: prev: {
};
aws-azure-login = prev.aws-azure-login.override (oldAttrs: {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
'';
@ -100,7 +100,7 @@ final: prev: {
};
bower2nix = prev.bower2nix.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
for prog in bower2nix fetch-bower; do
wrapProgram "$out/bin/$prog" --prefix PATH : ${lib.makeBinPath [ pkgs.git pkgs.nix ]}
@ -109,7 +109,7 @@ final: prev: {
};
carbon-now-cli = prev.carbon-now-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
'';
@ -151,7 +151,7 @@ final: prev: {
});
fast-cli = prev.fast-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
'';
@ -171,7 +171,7 @@ final: prev: {
});
graphql-language-service-cli = prev.graphql-language-service-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/graphql-lsp" \
--prefix NODE_PATH : ${final.graphql}/lib/node_modules
@ -227,7 +227,7 @@ final: prev: {
};
makam = prev.makam.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postFixup = ''
wrapProgram "$out/bin/makam" --prefix PATH : ${lib.makeBinPath [ nodejs ]}
${
@ -255,7 +255,7 @@ final: prev: {
if stdenv.isDarwin
then {}
else {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
'';
@ -275,7 +275,7 @@ final: prev: {
};
node-gyp = prev.node-gyp.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
# Teach node-gyp to use nodejs headers locally rather that download them form https://nodejs.org.
# This is important when build nodejs packages in sandbox.
postInstall = ''
@ -294,7 +294,7 @@ final: prev: {
};
node2nix = prev.node2nix.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
# We need to use master because of a fix that replaces git:// url to https://.
src = fetchFromGitHub {
owner = "svanderburg";
@ -316,7 +316,7 @@ final: prev: {
};
pnpm = prev.pnpm.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
preRebuild = ''
sed 's/"link:/"file:/g' --in-place package.json
@ -335,7 +335,7 @@ final: prev: {
};
postcss-cli = prev.postcss-cli.override (oldAttrs: {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/postcss" \
--prefix NODE_PATH : ${final.postcss}/lib/node_modules \
@ -354,7 +354,7 @@ final: prev: {
# version. Then change the correct hash to this package. The PR should hold
# two commits: one for the engines and the other one for the node package.
prisma = prev.prisma.override rec {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
inherit (pkgs.prisma-engines) version;
@ -382,7 +382,7 @@ final: prev: {
# tries to install purescript
npmFlags = "--ignore-scripts";
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/pulp" --suffix PATH : ${lib.makeBinPath [
pkgs.purescript
@ -392,7 +392,7 @@ final: prev: {
reveal-md = prev.reveal-md.override (
lib.optionalAttrs (!stdenv.isDarwin) {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
'';
@ -414,7 +414,7 @@ final: prev: {
tailwindcss = prev.tailwindcss.override {
plugins = [ ];
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
nodePath=""
for p in "$out" "${final.postcss}" $plugins; do
@ -439,7 +439,7 @@ final: prev: {
};
tedicross = prev."tedicross-git+https://github.com/TediCross/TediCross.git#v0.8.7".override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
makeWrapper '${nodejs}/bin/node' "$out/bin/tedicross" \
--add-flags "$out/lib/node_modules/tedicross/main.js"
@ -480,7 +480,7 @@ final: prev: {
};
ts-node = prev.ts-node.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/ts-node" \
--prefix NODE_PATH : ${final.typescript}/lib/node_modules
@ -488,7 +488,7 @@ final: prev: {
};
tsun = prev.tsun.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/tsun" \
--prefix NODE_PATH : ${final.typescript}/lib/node_modules
@ -496,7 +496,7 @@ final: prev: {
};
typescript-language-server = prev.typescript-language-server.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/typescript-language-server" \
--suffix PATH : ${lib.makeBinPath [ final.typescript ]}
@ -554,7 +554,7 @@ final: prev: {
};
yaml-language-server = prev.yaml-language-server.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/yaml-language-server" \
--prefix NODE_PATH : ${final.prettier}/lib/node_modules

View File

@ -15,8 +15,8 @@ buildPythonPackage rec {
sha256 = "0qv2kv7vc3qqlzxsisgg31cmrkkqgnmxspbj10c5fhdmwzzwi0i9";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
makeWrapper
glibcLocales gobject-introspection gtk3 libsoup libsecret
];

View File

@ -20,6 +20,7 @@
, meta ? {}
, groups ? null
, ignoreCollisions ? false
, nativeBuildInputs ? []
, buildInputs ? []
, extraConfigPaths ? []
, ...
@ -102,7 +103,7 @@ let
basicEnvArgs = {
inherit buildInputs ignoreCollisions;
inherit nativeBuildInputs buildInputs ignoreCollisions;
name = name';

View File

@ -36,12 +36,12 @@ stdenv.mkDerivation rec {
dotnet-sdk
mono
unzip
makeWrapper
];
buildInputs = [
dotnetPackages.Nuget
glibcLocales
makeWrapper
];
# https://github.com/NixOS/nixpkgs/issues/38991

View File

@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
mv $out/share/pixmaps/eclipse64.png $out/share/pixmaps/eclipse.png
'';
nativeBuildInputs = [ unzip ];
nativeBuildInputs = [ unzip makeWrapper ];
buildInputs = [
fontconfig
freetype
@ -90,7 +90,6 @@ stdenv.mkDerivation rec {
libX11
libXrender
libXtst
makeWrapper
zlib
shared-mime-info
webkitgtk

View File

@ -14,7 +14,7 @@ let
in
buildEnv {
name = "ihaskell-with-packages";
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
paths = [ ihaskellEnv jupyter ];
postBuild = ''
ln -s ${ihaskellSh}/bin/ihaskell-notebook $out/bin/

View File

@ -23,8 +23,9 @@ perlPackages.buildPerlPackage {
sed -i '/p2_mp4h\/doc/d' Makefile.in
'';
nativeBuildInputs = [ makeWrapper ];
buildInputs = with perlPackages;
[ perl TermReadKey GD BitVector ncurses lynx makeWrapper ImageSize ];
[ perl TermReadKey GD BitVector ncurses lynx ImageSize ];
patches = [ ./redhat-with-thr.patch ./dynaloader.patch ./no_bitvector.patch ];

View File

@ -18,7 +18,7 @@ let
in buildEnv {
name = "frogatto-${version}";
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
paths = [ engine data desktopItem ];
pathsToLink = [
"/bin"

View File

@ -37,9 +37,9 @@ stdenv.mkDerivation {
})
];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ git curl SDL2 xercesc openal lua libpng libjpeg libvlc wxGTK
glib cppunit fontconfig freetype ftgl glew libogg libvorbis makeWrapper libGLU ];
nativeBuildInputs = [ cmake pkg-config makeWrapper git ];
buildInputs = [ curl SDL2 xercesc openal lua libpng libjpeg libvlc wxGTK
glib cppunit fontconfig freetype ftgl glew libogg libvorbis libGLU ];
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=$out"

View File

@ -12,10 +12,9 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [
SDL2
makeWrapper
];
configurePhase = ''

View File

@ -33,11 +33,10 @@ stdenv.mkDerivation rec {
})
];
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [
SDL2
SDL2_mixer
makeWrapper
] ++ lib.optional stdenv.isDarwin Cocoa;
# Darwin needs a custom installphase since it is excluded from the cmake install

View File

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
ln -s ${tracks} data/tracks
'';
nativeBuildInputs = [ cmake pkg-config ];
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
buildInputs = [
boost
ogre
@ -45,7 +45,6 @@ stdenv.mkDerivation rec {
ois
SDL2
libvorbis
makeWrapper
enet
libXcursor
bullet

View File

@ -10,8 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "1za78yx57mgwcmmi33wx3533yz1x093dnqis8q2qmqivxav51lca";
};
buildInputs = [ cpio xorgproto libX11 libXmu libXaw libXt tcl tk libXext
fontconfig makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ cpio xorgproto libX11 libXmu libXaw libXt tcl tk libXext fontconfig ];
configureFlags = [
"--enable-alternate-scoresdir=scores"

View File

@ -21,8 +21,8 @@ perlPackages.buildPerlPackage rec {
hash = "sha256-P4CSu/ff6i48uWV5gXsJgayZ1S1s0RAqa5O5y3Y0g9Y=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
makeWrapper
perlPackages.perl
perlPackages.AnyEvent
perlPackages.ArchiveZip

View File

@ -176,7 +176,7 @@ let
postgresql.lib
postgresql.man # in case user installs this into environment
];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
# We include /bin to ensure the $out/bin directory is created, which is

View File

@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "0grifm5qyqazq63va3w26xjqnxwmfixhx0fx0zy7kd39378wwa6i";
};
nativeBuildInputs = [ replace ];
buildInputs = [ ruby makeWrapper ];
nativeBuildInputs = [ replace makeWrapper ];
buildInputs = [ ruby ];
dontBuild = true;

View File

@ -5,7 +5,7 @@ bundlerApp {
gemdir = ./.;
exes = [ "bolt" ];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
gemConfig.bolt = attrs: {
# scripts in libexec will be executed by remote host,

View File

@ -11,9 +11,9 @@ stdenv.mkDerivation {
sha256 = "sha256-lm5OfryV1/1T1RgsVDdp0Jg5rh8AND8M3ighfrznKes=";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [
makeWrapper alsa-lib gtk3 gdk-pixbuf gnome.adwaita-icon-theme
alsa-lib gtk3 gdk-pixbuf gnome.adwaita-icon-theme
librsvg wrapGAppsHook
];

View File

@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
pname = "lvmsync";
version = (import ./gemset.nix).${pname}.version;
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;

View File

@ -14,9 +14,9 @@ let
# can help with finding new Python scripts.
buildInputs = [
fuse bison flex openssl ncurses readline
libtool pkg-config zlib libaio libxml2
acl sqlite liburcu attr makeWrapper util-linux libtirpc gperftools
fuse openssl ncurses readline
zlib libaio libxml2
acl sqlite liburcu attr util-linux libtirpc gperftools
liburing
(python3.withPackages (pkgs: [
pkgs.flask
@ -106,7 +106,7 @@ in stdenv.mkDerivation rec {
"--localstatedir=/var"
];
nativeBuildInputs = [ rpcsvc-proto autoconf automake ];
nativeBuildInputs = [ autoconf automake libtool pkg-config bison flex makeWrapper rpcsvc-proto ];
makeFlags = [ "DESTDIR=$(out)" ];

View File

@ -5,7 +5,7 @@ bundlerApp {
gemdir = ./.;
exes = [ "fusuma" ];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/fusuma" \

View File

@ -49,10 +49,8 @@ in stdenv.mkDerivation rec {
patches = [ ./40103-iostat-fix.patch ];
nativeBuildInputs = [ unzip ];
buildInputs = [
makeWrapper
] ++ (with python'.pkgs; [
nativeBuildInputs = [ unzip makeWrapper ];
buildInputs = with python'.pkgs; [
requests
psycopg2
psutil
@ -63,7 +61,7 @@ in stdenv.mkDerivation rec {
python-etcd
consul
docker
]);
];
propagatedBuildInputs = with python'.pkgs; [ python tornado ];
buildCommand = ''

View File

@ -33,7 +33,8 @@ let
in buildEnv {
name = "pass-extensions-env";
paths = selected;
buildInputs = [ makeWrapper ] ++ concatMap (x: x.buildInputs) selected;
nativeBuildInputs = [ makeWrapper ];
buildInputs = concatMap (x: x.buildInputs) selected;
postBuild = ''
files=$(find $out/bin/ -type f -exec readlink -f {} \;)

View File

@ -9,9 +9,7 @@ bundlerApp {
gemdir = ./.;
exes = [ "wpscan" ];
buildInputs = [
makeWrapper
];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/wpscan" \

View File

@ -5,7 +5,7 @@ bundlerApp {
gemdir = ./.;
exes = [ "r10k" ];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/r10k --prefix PATH : ${lib.makeBinPath [ git gnutar gzip ]}

View File

@ -20,7 +20,7 @@ bundlerApp rec {
"asciidoctor-revealjs"
];
buildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
postBuild = lib.optionalString (path != "") (lib.concatMapStrings (exe: ''
wrapProgram $out/bin/${exe} \

View File

@ -13,7 +13,7 @@ let
"kramdoc"
];
# buildInputs = [ makeWrapper ];
# nativeBuildInputs = [ makeWrapper ];
# postBuild = ''
# wrapProgram "$out/bin/asciidoctor-epub3" \

View File

@ -3148,7 +3148,7 @@ with pkgs;
cabal2nix = symlinkJoin {
inherit (cabal2nix-unwrapped) name meta;
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [ buildPackages.makeWrapper ];
paths = [ cabal2nix-unwrapped ];
postBuild = ''
wrapProgram $out/bin/cabal2nix \