wrapQemuBinfmtP: don't use pkgsStatic

There's no reason to bring in a whole cross toolchain just to build a
zero-dependency C program.
This commit is contained in:
Alyssa Ross
2024-12-19 10:26:40 +01:00
parent 98772690ea
commit 8cb4f5b702
@@ -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