Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32508852
D5041.1767089481.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5041.1767089481.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 10:11 AM (5 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5866938
Default Alt Text
D5041.1767089481.diff (1 KB)
Attached To
Mode
D5041: [Nix] Fix corrosion usage with nix develop
Attached
Detach File
Event Timeline
Log In to Comment