Skip to content

Commit

Permalink
wrapQemuBinfmtP: don't use pkgsStatic
Browse files Browse the repository at this point in the history
There's no reason to bring in a whole cross toolchain just to build a
zero-dependency C program.
  • Loading branch information
alyssais committed Dec 19, 2024
1 parent 9877269 commit 8cb4f5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@
# 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;

dontUnpack = true;
dontInstall = true;

buildInputs = [ stdenv.cc.libc.static or null ];

buildPhase = ''
runHook preBuild
Expand Down

0 comments on commit 8cb4f5b

Please sign in to comment.