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 = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
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 }:
|
outputs = { self, nixpkgs, utils, rust-overlay }:
|
||||||
flake-utils.lib.eachDefaultSystem (system :
|
utils.lib.eachDefaultSystem (system :
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
overlays = [(import rust-overlay)];
|
||||||
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
in {
|
in {
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = with pkgs; mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.rustup pkgs.cargo pkgs.rustc-unwrapped
|
openssl
|
||||||
pkgs.rust-analyzer-unwrapped
|
pkg-config
|
||||||
|
rust-bin.stable.latest.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue