diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-07-11 12:47:44 -0700 |
---|---|---|
committer | Rick van Schijndel <Mindavi@users.noreply.github.com> | 2023-01-02 08:53:59 +0100 |
commit | b92e8e59975283264df8d6e3cbbdc4dd15439223 (patch) | |
tree | 18a33ea89f67066a82bd2d4b02d7d898eb7a7cb1 /pkgs/top-level/release-cross.nix | |
parent | 3c4aef1767c2f12f80643a52f7cb76d256bf5a2c (diff) | |
download | nixlib-b92e8e59975283264df8d6e3cbbdc4dd15439223.tar nixlib-b92e8e59975283264df8d6e3cbbdc4dd15439223.tar.gz nixlib-b92e8e59975283264df8d6e3cbbdc4dd15439223.tar.bz2 nixlib-b92e8e59975283264df8d6e3cbbdc4dd15439223.tar.lz nixlib-b92e8e59975283264df8d6e3cbbdc4dd15439223.tar.xz nixlib-b92e8e59975283264df8d6e3cbbdc4dd15439223.tar.zst nixlib-b92e8e59975283264df8d6e3cbbdc4dd15439223.zip |
pkgs/top-level/release-cross.nix: add Hydra jobs for pkgsCross.platform.nixStatic
This commit causes Hydra to build `nixStatic` on non-NixOS platforms for which nixStatic is known to build correctly. Providing Hydra builds of `nixStatic` on these platforms allows users to bootstrap their local nixpkgs system without either having to: a. Trust binaries that came from a source other than Hydra or b. Fight with their host distribution to satisfy all of nix's large set of build dependencies (this is not easy!) Currently there are two platforms in this set: mips64el-linux-gnuabi64 and powerpc64le-linux-gnu.
Diffstat (limited to 'pkgs/top-level/release-cross.nix')
-rw-r--r-- | pkgs/top-level/release-cross.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index 93e36360bf9c..ccca912db791 100644 --- a/pkgs/top-level/release-cross.nix +++ b/pkgs/top-level/release-cross.nix @@ -84,6 +84,17 @@ let buildPackages.binutils = nativePlatforms; mpg123 = nativePlatforms; }; + + # Enabled-but-unsupported platforms for which nix is known to build. + # We provide Hydra-built `nixStatic` for these platforms. This + # allows users to bootstrap their own system without either (a) + # trusting binaries from a non-Hydra source or (b) having to fight + # with their host distribution's versions of nix's numerous + # build dependencies. + nixCrossStatic = { + nixStatic = nativePlatforms; + }; + in { @@ -226,4 +237,8 @@ in # attribute, so there is no way to detect this -- we must add it # as a special case. (builtins.removeAttrs tools ["bootstrapTools"]); + + # Cross-built nixStatic for platforms for enabled-but-unsupported platforms + mips64el-nixCrossStatic = mapTestOnCross lib.systems.examples.mips64el-linux-gnuabi64 nixCrossStatic; + powerpc64le-nixCrossStatic = mapTestOnCross lib.systems.examples.powernv nixCrossStatic; } |