summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2023-03-09 21:21:15 -0500
committerGitHub <noreply@github.com>2023-03-09 21:21:15 -0500
commite9cf2d1a41fcac13ce22f8c01c42972dae9b99b3 (patch)
tree1281a0ccb5a858470737f99b5003faf16ffb1696 /pkgs/stdenv
parent0ae0a7018d02130fd8699e604d49446b568af22d (diff)
parent49878856e6cde3ae674f470da407e3bde2f55c9d (diff)
downloadnixpkgs-e9cf2d1a41fcac13ce22f8c01c42972dae9b99b3.tar
nixpkgs-e9cf2d1a41fcac13ce22f8c01c42972dae9b99b3.tar.gz
nixpkgs-e9cf2d1a41fcac13ce22f8c01c42972dae9b99b3.tar.bz2
nixpkgs-e9cf2d1a41fcac13ce22f8c01c42972dae9b99b3.tar.lz
nixpkgs-e9cf2d1a41fcac13ce22f8c01c42972dae9b99b3.tar.xz
nixpkgs-e9cf2d1a41fcac13ce22f8c01c42972dae9b99b3.tar.zst
nixpkgs-e9cf2d1a41fcac13ce22f8c01c42972dae9b99b3.zip
Merge pull request #188334 from amjoseph-nixpkgs/pr/bootstrapFiles/mips64n32
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/linux/bootstrap-files/mips64el-n32.nix25
-rw-r--r--pkgs/stdenv/linux/default.nix5
2 files changed, 29 insertions, 1 deletions
diff --git a/pkgs/stdenv/linux/bootstrap-files/mips64el-n32.nix b/pkgs/stdenv/linux/bootstrap-files/mips64el-n32.nix
new file mode 100644
index 00000000000..cf26c2113ec
--- /dev/null
+++ b/pkgs/stdenv/linux/bootstrap-files/mips64el-n32.nix
@@ -0,0 +1,25 @@
+#
+# Files came from this Hydra build:
+#
+#   https://hydra.nixos.org/build/188389586
+#
+# Which used nixpkgs revision 97d9c84e1df4397b43ecb39359f1bd003cd44585
+# to instantiate:
+#
+#   /nix/store/hakn8s85s9011v61r6svp5qy8x1y64fv-stdenv-bootstrap-tools-mips64el-unknown-linux-gnuabin32.drv
+#
+# and then built:
+#
+#   /nix/store/rjgybpnf3yiqyhvl2n2lx31jf800fii2-stdenv-bootstrap-tools-mips64el-unknown-linux-gnuabin32
+#
+{
+  busybox = import <nix/fetchurl.nix> {
+    url = "http://tarballs.nixos.org/stdenv-linux/mips64el-n32/97d9c84e1df4397b43ecb39359f1bd003cd44585/busybox";
+    sha256 = "sha256-4N3G1qYA7vitjhsIW17pR6UixIuzrq4vZXa8F0/X4iI=";
+    executable = true;
+  };
+  bootstrapTools = import <nix/fetchurl.nix> {
+    url = "http://tarballs.nixos.org/stdenv-linux/mips64el-n32/97d9c84e1df4397b43ecb39359f1bd003cd44585/bootstrap-tools.tar.xz";
+    sha256 = "sha256-LWrpN6su2yNVurUyhZP34OiZyzgh7MfN13fIIbou8KI=";
+  };
+}
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix
index 87819073828..ba881272983 100644
--- a/pkgs/stdenv/linux/default.nix
+++ b/pkgs/stdenv/linux/default.nix
@@ -69,7 +69,10 @@
       armv7l-linux = import ./bootstrap-files/armv7l.nix;
       aarch64-linux = import ./bootstrap-files/aarch64.nix;
       mipsel-linux = import ./bootstrap-files/loongson2f.nix;
-      mips64el-linux = import ./bootstrap-files/mips64el.nix;
+      mips64el-linux = import
+       (if localSystem.isMips64n32
+        then ./bootstrap-files/mips64el-n32.nix
+        else ./bootstrap-files/mips64el.nix);
       powerpc64le-linux = import ./bootstrap-files/powerpc64le.nix;
       riscv64-linux = import ./bootstrap-files/riscv64.nix;
     };