Skip to content

Commit

Permalink
Add Rust in a separate devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Jun 21, 2024
1 parent e812dff commit 63bed43
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
21 changes: 20 additions & 1 deletion flake.lock

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

17 changes: 15 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, flake-utils } @ imports: (
outputs = { self, nixpkgs, flake-utils, rust-overlay } @ imports: (
flake-utils.lib.eachDefaultSystem (
system: (
let
pkgs = import nixpkgs { inherit system; };
overlays = [
(import rust-overlay)
];
pkgs = import nixpkgs { inherit overlays system; };
baseDependencies = with pkgs; [
python3
];
Expand All @@ -25,6 +32,12 @@
]
++ baseDependencies;
};
doc-tests = pkgs.mkShell {
buildInputs = with pkgs; [
rust-bin.stable.latest.default
]
++ baseDependencies;
};
};
}
)
Expand Down

0 comments on commit 63bed43

Please sign in to comment.