auto-decrypt/shell.nix

33 lines
690 B
Nix

let
# Import nixpkgs and add the mozilla overlay
nixpkgs = import <nixpkgs> {
overlays = [
(import (builtins.fetchTarball {
url = "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz";
}))
];
};
in
nixpkgs.mkShell {
buildInputs = [
((nixpkgs.rustChannelOf {
channel = "stable";
date = null; # null means latest
}).rust.override {
extensions = [ "rust-src" "rust-analysis" ];
})
nixpkgs.openssl
nixpkgs.pkg-config
nixpkgs.sqlite
nixpkgs.libpq
nixpkgs.libmysqlclient
];
shellHook = ''
export TMPDIR=/tmp
export PATH=$PATH:$HOME/.cargo/bin
cargo install diesel_cli
'';
}