Skip to content

Commit b9dbb2a

Browse files
committed
Add nix-shell and direnv goodness
Signed-off-by: Manuel Mendez <[email protected]>
1 parent 432b78e commit b9dbb2a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
has nix && use nix
2+
dotenv_if_exists
3+
PATH_add bin
4+
path_add GOBIN bin

shell.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
let _pkgs = import <nixpkgs> { };
2+
in { pkgs ? import (_pkgs.fetchFromGitHub {
3+
owner = "NixOS";
4+
repo = "nixpkgs";
5+
#branch@date: nixpkgs-unstable@2021-11-12
6+
rev = "2fbba4b4416446721ebfb2e0bfcc9e45d8ddb4d2";
7+
sha256 = "1yw2p38pdvx63n21g6pmn79xjpxa93p1qpcadrlmg0j0zjnxkwr8";
8+
}) { } }:
9+
10+
with pkgs;
11+
12+
mkShell {
13+
buildInputs = [
14+
git
15+
gnumake
16+
go
17+
nixfmt
18+
nodePackages.prettier
19+
python3Packages.pip
20+
python3Packages.setuptools
21+
python3Packages.wheel
22+
];
23+
}

0 commit comments

Comments
 (0)