Skip to content

Commit 57beefb

Browse files
jmbaurdanielfullmer
authored andcommitted
flash-tools: use smaller qemu build-time dependency
The qemu-user package is a much build-time dependency than the qemu package (~185MiB vs ~1.7GiB), and it contains everything we need in flash-tools.
1 parent f1e0eab commit 57beefb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/flash-tools/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
, lz4
2323
, gcc
2424
, dtc
25-
, qemu
25+
, qemu-user
2626
, runtimeShell
2727
, fetchzip
2828
, bc
@@ -79,7 +79,7 @@ let
7979
mv "$filename" ."$filename"-wrapped
8080
cat >"$filename" <<EOF
8181
#!${runtimeShell}
82-
exec -a "\$0" ${qemu}/bin/qemu-i386 "$out/bootloader/.$filename-wrapped" "\$@"
82+
exec -a "\$0" ${qemu-user}/bin/qemu-i386 "$out/bootloader/.$filename-wrapped" "\$@"
8383
EOF
8484
chmod +x "$filename"
8585
done

0 commit comments

Comments
 (0)