22 lines
554 B
Nix
22 lines
554 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = github:NixOS/nixpkgs;
|
||
|
oxalica.url = github:oxalica/rust-overlay;
|
||
|
};
|
||
|
|
||
|
outputs = { nixpkgs, oxalica, ... }: let
|
||
|
pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [(import oxalica)]; };
|
||
|
in{
|
||
|
devShell."x86_64-linux" = pkgs.mkShell {
|
||
|
buildInputs = with pkgs; [
|
||
|
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
|
||
|
extensions = [ "rust-src" "rustfmt" "rust-analyzer" ];
|
||
|
}))
|
||
|
openssl
|
||
|
pkg-config
|
||
|
evcxr
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|