Skip to content

Commit

Permalink
Merge pull request #197 from a-kenji/devshells/add-rustc-directly
Browse files Browse the repository at this point in the history
devshells: Add rustc path directly
  • Loading branch information
a-kenji authored Oct 30, 2024
2 parents eb06f6f + 69f8d74 commit 870609e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nix/devshells.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
_: {
perSystem =
{ pkgs, self', ... }:
let
env = (import ./env.nix { inherit pkgs; });
in
{
devShells = {
default = pkgs.mkShellNoCC {
Expand All @@ -14,6 +17,7 @@ _: {
pkgs.rustc
self'.formatter.outPath
];
inherit env;
};
full = pkgs.mkShellNoCC {
inputsFrom = [ self'.devShells.default ];
Expand All @@ -24,6 +28,7 @@ _: {
pkgs.mdsh
pkgs.vhs
];
inherit env;
};
};
};
Expand Down
5 changes: 4 additions & 1 deletion nix/env.nix
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
_: { }
{ pkgs, ... }:
{
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
}

0 comments on commit 870609e

Please sign in to comment.