Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
465 B · 32 lines
Nix
123456789101112131415161718192021222324252627282930313233{ lib, zig, runCommand,}:{ pname, version, name ? "${pname}-${version}", src, hash ? lib.fakeHash,}@args:runCommand "${name}-zig-deps" { inherit (args) src;
nativeBuildInputs = [ zig ];
outputHashAlgo = null; outputHashMode = "recursive"; outputHash = hash; } '' export ZIG_GLOBAL_CACHE_DIR=$(mktemp -d)
runHook unpackPhase
cd $sourceRoot zig build --fetch
mv $ZIG_GLOBAL_CACHE_DIR/p $out ''