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
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