diff --git a/pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix b/pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix index fada14569299b..71aba0a1d6160 100644 --- a/pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix +++ b/pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix @@ -5,11 +5,11 @@ # The wrapper has to be static so LD_* environment variables # cannot affect the execution of the wrapper itself. -{ lib, stdenv, pkgsStatic, enableDebug ? false }: +{ lib, stdenv, enableDebug ? false }: name: emulator: -pkgsStatic.stdenv.mkDerivation { +stdenv.mkDerivation { inherit name; src = ./binfmt-p-wrapper.c; @@ -17,6 +17,8 @@ pkgsStatic.stdenv.mkDerivation { dontUnpack = true; dontInstall = true; + buildInputs = [ stdenv.cc.libc.static or null ]; + buildPhase = '' runHook preBuild