nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 724 B view raw
1{ 2 stdenv, 3 zig, 4 callPackage, 5 wrapCCWith, 6 wrapBintoolsWith, 7 overrideCC, 8}: 9{ 10 # Provided for backward compatibility, as the `zig` derivation now sets 11 # setupHook. 12 hook = zig; 13 14 bintools-unwrapped = callPackage ./bintools.nix { inherit zig; }; 15 bintools = wrapBintoolsWith { bintools = zig.bintools-unwrapped; }; 16 17 cc-unwrapped = callPackage ./cc.nix { inherit zig; }; 18 cc = wrapCCWith { 19 cc = zig.cc-unwrapped; 20 bintools = zig.bintools; 21 extraPackages = [ ]; 22 nixSupport.cc-cflags = [ 23 "-target" 24 "${stdenv.targetPlatform.system}-${stdenv.targetPlatform.parsed.abi.name}" 25 ]; 26 }; 27 28 stdenv = overrideCC stdenv zig.cc; 29 30 fetchDeps = callPackage ./fetcher.nix { inherit zig; }; 31}