Skip to content

Commit

Permalink
nix: fix devShell
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoshiu committed Apr 27, 2024
1 parent b5c4b14 commit e88098b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,20 @@
devShells.default =
with pkgs;
mkShell {
buildInputs = [
toolchain
iconv
] ++ (lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]);
buildInputs =
let
toolchain =
with fenix.packages.${system};
combine [
minimal.cargo
minimal.rustc
];
in
[
toolchain
iconv
]
++ (lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]);
};

formatter = pkgs.nixfmt-rfc-style;
Expand Down

0 comments on commit e88098b

Please sign in to comment.