let # Import nixpkgs and add the mozilla overlay nixpkgs = import { 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 ''; }