add envrc and shell.nix with 'just' pkg

This commit is contained in:
steveej 2018-10-31 22:49:43 +01:00
parent 009d66bc28
commit 0e2f704aa3
3 changed files with 36 additions and 1 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

View file

@ -28,7 +28,7 @@ In the unlikely case that you actually read this and have any questions please d
- [ ] update running system
- [ ] partition/encrypt/format disks
- [ ] annotate recipes with some documentation
- [ ] declare shell.nix with runtime deps
- [x] declare shell.nix with runtime deps
- [ ] Document bootstrap process
- [ ] Automatic backups
- [ ] tracked dotfiles

34
shell.nix Normal file
View file

@ -0,0 +1,34 @@
with import <nixpkgs> {};
let
just = rustPlatform.buildRustPackage rec {
name = "just-${version}";
version = "git";
src = builtins.fetchGit {
url = "https://github.com/casey/just.git";
rev = "6430d38a6a489ba4e818b6a892e8bbbbacbfe8f3";
};
cargoSha256 = "0awfq9fhcin2q6mvv54xw6i6pxhdp9xa1cpx3jmpf3a6h8l6s9wp";
doCheck = false;
meta = with stdenv.lib; {
description = "Just a command runner ";
homepage = https://github.com/casey/just;
license = licenses.unlicense;
maintainers = [ ];
platforms = platforms.all;
};
};
in
stdenv.mkDerivation {
name = "infra-env";
buildInputs = [
just
];
# Set Environment Variables
RUST_BACKTRACE = 1;
}