Skip to content

Commit 6a1fa24

Browse files
committed
nix: Add nix-shell for convenient dev
This is meant for use with `nix-shell` in the project root or `nix-shell /path/to/project/root`
1 parent 8eb73bf commit 6a1fa24

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

nix/overlay.nix

+6
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@ final: prev: {
44
# nix runtime but not end up in a derivation. passthru.tests is
55
# one very common attribute.
66
passthru.tests.basic-raft = final.callPackage ./nixos-tests/basic-raft { };
7+
8+
# My personal preference is to put a dev shell in there, too
9+
passthru.shell = final.mkShell {
10+
name = "null-db-shell";
11+
inputsFrom = [ final.null-db ];
12+
};
713
});
814
}

shell.nix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
with import ./. { }; null-db.shell

0 commit comments

Comments
 (0)