auto-decrypt/shell.nix
2025-08-16 22:18:54 +02:00

31 lines
620 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
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
'';
}