Skip to content

Commit

Permalink
chore: Fix devenv for Linux (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Nov 1, 2023
1 parent 31e9bad commit 9af1bee
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
# https://devenv.sh/packages/
# on macos frameworks have to be explicitly specified
# otherwise a linker error ocurs on rust packages
packages = lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk; [
frameworks.CoreServices
frameworks.CoreFoundation
pkgs.just
]);
packages = [ pkgs.just ]
++ lib.optionals pkgs.stdenv.isLinux [
pkgs.stdenv.cc.cc.lib
]
++ lib.optionals pkgs.stdenv.isDarwin (
with pkgs.darwin.apple_sdk; [
frameworks.CoreServices
frameworks.CoreFoundation
]
);

# Certain Rust tools won't work without this
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
Expand Down

0 comments on commit 9af1bee

Please sign in to comment.