Skip to content

Commit

Permalink
qemu-static: re-add dtc buildInput
Browse files Browse the repository at this point in the history
  • Loading branch information
Freax13 committed Nov 4, 2024
1 parent 86fb203 commit a84f6f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/by-name/qemu-static/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"-Dlinux_fdt_path=${dtc}/lib"
];

# The upstream derivation removes the dtc dependency when minimal is set,
# but QEMU needs it when not only building usermode emulators.
# TODO(freax13): Fix this upstream.
buildInputs = previousAttrs.buildInputs ++ [ dtc ];

nativeBuildInputs = previousAttrs.nativeBuildInputs ++ [ python3Packages.packaging ];

patches = [
Expand Down
5 changes: 5 additions & 0 deletions packages/by-name/qemu-tdx-static/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ in
"-Dlinux_fdt_path=${dtc}/lib"
];

# The upstream derivation removes the dtc dependency when minimal is set,
# but QEMU needs it when not only building usermode emulators.
# TODO(freax13): Fix this upstream.
buildInputs = previousAttrs.buildInputs ++ [ dtc ];

nativeBuildInputs = previousAttrs.nativeBuildInputs ++ [ python3Packages.packaging ];

prePatch = ''
Expand Down

0 comments on commit a84f6f9

Please sign in to comment.