aboutsummaryrefslogtreecommitdiff
path: root/nix/compile.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-10-18 12:48:31 +0200
committerAlex Auvolat <alex@adnab.me>2022-10-18 12:48:31 +0200
commit667ca9d3e3971d57d1c95defbff790ab5dc26221 (patch)
tree7796b09a07fe995087d88701f2a6f590c6e1fb53 /nix/compile.nix
parent6a5eba0b728dd24ea51aa1c7ad5902b77af77c88 (diff)
downloadgarage-667ca9d3e3971d57d1c95defbff790ab5dc26221.tar.gz
garage-667ca9d3e3971d57d1c95defbff790ab5dc26221.zip
Cleanup nix scripts
Diffstat (limited to 'nix/compile.nix')
-rw-r--r--nix/compile.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nix/compile.nix b/nix/compile.nix
index 9406bb44..45c7efa1 100644
--- a/nix/compile.nix
+++ b/nix/compile.nix
@@ -23,8 +23,9 @@ let
/*
Cargo2nix is built for rustOverlay which installs Rust from Mozilla releases.
- We want our own Rust to avoid incompatibilities, like we had with musl 1.2.0.
- rustc was built with musl < 1.2.0 and nix shipped musl >= 1.2.0 which lead to compilation breakage.
+ This is fine for 64-bit platforms, but for 32-bit platforms, we need our own Rust
+ to avoid incompatibilities with time_t between different versions of musl
+ (>= 1.2.0 shipped by NixOS, < 1.2.0 with which rustc was built), which lead to compilation breakage.
So we want a Rust release that is bound to our Nix repository to avoid these problems.
See here for more info: https://musl.libc.org/time64.html
Because Cargo2nix does not support the Rust environment shipped by NixOS,