add envrc and shell.nix with 'just' pkg
This commit is contained in:
parent
009d66bc28
commit
0e2f704aa3
3 changed files with 36 additions and 1 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use nix
|
|
@ -28,7 +28,7 @@ In the unlikely case that you actually read this and have any questions please d
|
||||||
- [ ] update running system
|
- [ ] update running system
|
||||||
- [ ] partition/encrypt/format disks
|
- [ ] partition/encrypt/format disks
|
||||||
- [ ] annotate recipes with some documentation
|
- [ ] annotate recipes with some documentation
|
||||||
- [ ] declare shell.nix with runtime deps
|
- [x] declare shell.nix with runtime deps
|
||||||
- [ ] Document bootstrap process
|
- [ ] Document bootstrap process
|
||||||
- [ ] Automatic backups
|
- [ ] Automatic backups
|
||||||
- [ ] tracked dotfiles
|
- [ ] tracked dotfiles
|
||||||
|
|
34
shell.nix
Normal file
34
shell.nix
Normal 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;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue