add nix shell

This commit is contained in:
Cyryl Płotnicki 2020-11-07 10:19:54 +00:00
parent 74a7b3ba16
commit 11f3981a2d
2 changed files with 15 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
eval "$(lorri direnv)"

14
shell.nix Normal file
View file

@ -0,0 +1,14 @@
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
channel = (nixpkgs.rustChannelOf { rustToolchain = ./rust-toolchain; });
in
with nixpkgs;
stdenv.mkDerivation {
name = "genpass_shell";
buildInputs = [
channel.rust
cacert openssl openssh zlib
llvm pkgconfig git
];
}