From 11f3981a2da2162b7fa9d39d6327f006f52de6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 7 Nov 2020 10:19:54 +0000 Subject: [PATCH] add nix shell --- .envrc | 1 + shell.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..be81fed --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +eval "$(lorri direnv)" \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..d59fdb0 --- /dev/null +++ b/shell.nix @@ -0,0 +1,14 @@ +let + moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); + nixpkgs = import { 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 + ]; + }