update flake rust
This commit is contained in:
parent
863e2770a5
commit
c497ec9ccb
1 changed files with 10 additions and 7 deletions
|
|
@ -3,18 +3,21 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system :
|
||||
outputs = { self, nixpkgs, utils, rust-overlay }:
|
||||
utils.lib.eachDefaultSystem (system :
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
overlays = [(import rust-overlay)];
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
devShells.default = with pkgs; mkShell {
|
||||
packages = [
|
||||
pkgs.rustup pkgs.cargo pkgs.rustc-unwrapped
|
||||
pkgs.rust-analyzer-unwrapped
|
||||
openssl
|
||||
pkg-config
|
||||
rust-bin.stable.latest.default
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue