Add nix and envrc setup.
This commit is contained in:
parent
f025288c8b
commit
3548e078ce
19
default.nix
Normal file
19
default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
let
|
||||||
|
unstableTarball = fetchTarball
|
||||||
|
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
||||||
|
pkgs = import <nixpkgs> { };
|
||||||
|
unstable = import unstableTarball { };
|
||||||
|
|
||||||
|
in with pkgs;
|
||||||
|
pkgs.mkShell {
|
||||||
|
name = "rust";
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
pkg-config
|
||||||
|
unstable.cargo
|
||||||
|
unstable.rustc
|
||||||
|
unstable.rustfmt
|
||||||
|
unstable.rust-analyzer
|
||||||
|
postgresql
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user