|
31 | 31 | ]; |
32 | 32 | in |
33 | 33 | customPkgs.packaging.asZip { |
34 | | - name = "${customPkgs.hostPlatform.system}-nix-tools-static"; |
| 34 | + name = "${customPkgs.stdenv.hostPlatform.system}-nix-tools-static"; |
35 | 35 | drvs' = [ |
36 | 36 | hsPkgs.cabal-install.components.exes.cabal |
37 | 37 | hsPkgs.hpack.components.exes.hpack |
|
45 | 45 | stringifyInputs = inputs: pkgs.lib.mapAttrsToList (name: value: pkgs.lib.trace "${name}=${value}" "${value}") inputs; |
46 | 46 | # stringifyInputs = inputs: map (x: "${x}") (builtins.attrValues inputs); |
47 | 47 |
|
48 | | - fragment-drv = "static-nix-tools-outputs.hydraJobs.${pkgs.hostPlatform.system}.zipped.${fragment-name}"; |
| 48 | + fragment-drv = "static-nix-tools-outputs.hydraJobs.${pkgs.stdenv.hostPlatform.system}.zipped.${fragment-name}"; |
49 | 49 | in |
50 | | - pkgs.runCommand "${pkgs.hostPlatform.system}-all-nix-tools" { |
| 50 | + pkgs.runCommand "${pkgs.stdenv.hostPlatform.system}-all-nix-tools" { |
51 | 51 | requiredSystemFeatures = [ "recursive-nix" ]; |
52 | 52 | nativeBuildInputs = |
53 | | - # [ inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.nix pkgs.gitMinimal ] |
| 53 | + # [ inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system}.nix pkgs.gitMinimal ] |
54 | 54 | [ (pkgs.lib.trace pkgs.nix.version pkgs.nix) pkgs.gitMinimal ] |
55 | 55 | ++ stringifyInputs inputs |
56 | 56 | ++ stringifyInputs inputs.haskellNix.inputs; |
|
59 | 59 | mkdir $out |
60 | 60 | cp $(nix --offline --extra-experimental-features "flakes nix-command" \ |
61 | 61 | build --accept-flake-config --no-link --print-out-paths --no-allow-import-from-derivation \ |
62 | | - --system ${pkgs.hostPlatform.system} \ |
| 62 | + --system ${pkgs.stdenv.hostPlatform.system} \ |
63 | 63 | ${../.}#${fragment-drv})/*.zip $out/ |
64 | 64 | ''; |
65 | 65 |
|
|
81 | 81 |
|
82 | 82 |
|
83 | 83 | allZippedTools = |
84 | | - pkgs.lib.optionalAttrs (pkgs.system == "x86_64-darwin" || pkgs.system == "aarch64-darwin") { |
| 84 | + pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.system == "x86_64-darwin" || pkgs.stdenv.hostPlatform.system == "aarch64-darwin") { |
85 | 85 | "nix-tools-static" = zippedToolsForDarwin; |
86 | 86 | "nix-tools-static-no-ifd" = zippedToolsNoIfdFor "nix-tools-static"; |
87 | 87 | } |
88 | 88 | // |
89 | | - pkgs.lib.optionalAttrs (pkgs.system == "x86_64-linux") { |
| 89 | + pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.system == "x86_64-linux") { |
90 | 90 | "nix-tools-static" = zippedToolsForLinux; |
91 | 91 | "nix-tools-static-arm64" = zippedToolsForLinuxArm64; |
92 | 92 |
|
|
0 commit comments