File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 1313 xz ,
1414} :
1515
16- let
17- zigLibc =
18- {
19- "glibc" = "gnu" ;
20- "musl" = "musl" ;
21- }
22- . ${ stdenv . hostPlatform . libc } or "none" ;
23- in
2416assert stdenv . hostPlatform . isStatic && stdenv . hostPlatform . libc == "musl" ;
2517assert withTools != withLoader ;
2618stdenv . mkDerivation {
@@ -56,7 +48,7 @@ stdenv.mkDerivation {
5648 runHook preConfigure
5749 export ZIG_GLOBAL_CACHE_DIR=$TEMPDIR
5850 ln -s ${ callPackage ../../build.zig.zon.nix { } } $ZIG_GLOBAL_CACHE_DIR/p
59- zigBuildFlags=("-Dloader=${ lib . boolToString withLoader } " "-Dtools=${ lib . boolToString withTools } " "--release=safe" "-Dtarget=${ stdenv . hostPlatform . qemuArch } -${ stdenv . hostPlatform . parsed . kernel . name } - ${ zigLibc } ")
51+ zigBuildFlags=("-Dloader=${ lib . boolToString withLoader } " "-Dtools=${ lib . boolToString withTools } " "--release=safe" "-Dtarget=${ stdenv . hostPlatform . qemuArch } -${ stdenv . hostPlatform . parsed . kernel . name } ")
6052 zigBuildFlags+=("-Ddynamic-linker=$(echo ${ stdenv . cc . bintools . dynamicLinker } )") # can contain a glob
6153 ${ lib . optionalString ( firmwareDirectory != null ) ''
6254 zigBuildFlags+=("-Dfirmware-directory=${ firmwareDirectory } ")
You can’t perform that action at this time.
0 commit comments