Commit 8cb4f5b7 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

wrapQemuBinfmtP: don't use pkgsStatic

There's no reason to bring in a whole cross toolchain just to build a
zero-dependency C program.
parent 98772690
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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