Page MenuHomePhabricator

D5041.diff
No OneTemporary

D5041.diff

diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix
--- a/nix/dev-shell.nix
+++ b/nix/dev-shell.nix
@@ -106,6 +106,9 @@
# Set development environment variable defaults
source "${../scripts/source_development_defaults.sh}"
+ # Still make Nix's C compiler be preferred over system default
+ export PATH=${lib.makeBinPath [ stdenv.cc ]}:"$PATH"
+
''
# Darwin condition can be removed once linux services are supported
+ lib.optionalString stdenv.isDarwin ''
diff --git a/nix/overlay.nix b/nix/overlay.nix
--- a/nix/overlay.nix
+++ b/nix/overlay.nix
@@ -68,14 +68,17 @@
'';
});
- corrosion = prev.corrosion.overrideAttrs(_: {
- patches = [
- # Fix logic around finding cargo and rustc when not managed by rustup
- (prev.fetchpatch {
- url = "https://github.com/corrosion-rs/corrosion/commit/d5330b3f03c7abb4e4da71e35654fa03ecb778bb.patch";
- sha256 = "sha256-jrA30bWNWprkqCiedf+xL7GlR9+9jgOyKAoTPVKkB9c=";
- })
- ];
+ # pin to newer version, as it has fixes for nix
+ corrosion = prev.corrosion.overrideAttrs(oldAttrs: rec {
+ version = "0.2.2";
+ name = "corrosion-${version}";
+
+ src = prev.fetchFromGitHub {
+ owner = "corrosion-rs";
+ repo = "corrosion";
+ rev = "v${version}";
+ sha256 = "sha256-eBYHe5krNBwjQ3mlukRtLvoS83kptW0/NzDUp1IePi0=";
+ };
});
# 16.14 now requires experimental import assertions syntax, pin to 16.13

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 5:30 AM (1 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2723907
Default Alt Text
D5041.diff (1 KB)

Event Timeline