Skip to content

Commit

Permalink
Reuse same zig for building to cross-compiled targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbaur committed May 13, 2024
1 parent 9de55c4 commit 169d577
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkgs/tinyboot.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
corebootSupport ? true,
debug ? false,
zigSrc,
lib,
pkgsBuildBuild,
stdenv,
xz,
zig_0_12,
zigSrc,
}:
let
zigArgs = [
Expand All @@ -28,10 +28,12 @@ stdenv.mkDerivation {
];
};

nativeBuildInputs = [
(zig_0_12.overrideAttrs (old: { src = zigSrc; }))
xz
depsBuildBuild = [
(pkgsBuildBuild.zig_0_12.overrideAttrs (old: {
src = zigSrc;
}))
];
nativeBuildInputs = [ xz ];

doCheck = true;

Expand Down

0 comments on commit 169d577

Please sign in to comment.