Skip to content

Commit

Permalink
Streamline the dev shell further
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jul 10, 2024
1 parent d0715a8 commit 093089c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,28 @@
};
};

packages = forAllSystems ({ system, pkgs, ... }: rec {
packages = forAllSystems ({ system, pkgs }: rec {
inherit (pkgs) fh;
default = pkgs.fh;
});

devShells = forAllSystems ({ system, pkgs, ... }:
devShells = forAllSystems ({ system, pkgs }:
{
default = pkgs.mkShell {
packages = with pkgs; [
(fenixToolchain stdenv.hostPlatform.system)
(fenixToolchain system)
cargo-watch
rust-analyzer
nixpkgs-fmt

# For the Rust environment
pkg-config
clang
gcc.cc.lib
]
++ lib.optionals (stdenv.isDarwin) (with darwin.apple_sdk.frameworks; [
libiconv
++ lib.optionals (stdenv.isDarwin) ([ libiconv ] ++ (with darwin.apple_sdk.frameworks; [
Security
SystemConfiguration
]);
]));

env = {
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
Expand Down

0 comments on commit 093089c

Please sign in to comment.