Skip to content

Commit

Permalink
nix: Add nix-shell for convenient dev
Browse files Browse the repository at this point in the history
This is meant for use with `nix-shell` in the project root or
`nix-shell /path/to/project/root`
  • Loading branch information
jsoo1 committed Nov 19, 2024
1 parent 441a0da commit 92d76c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ final: prev: {
# nix runtime but not end up in a derivation. passthru.tests is
# one very common attribute.
passthru.tests.basic-raft = final.callPackage ./nixos-tests/basic-raft { };

# My personal preference is to put a dev shell in there, too
passthru.shell = final.mkShell {
name = "null-db-shell";
inputsFrom = [ final.null-db ];
};
});
}
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
with import ./. { }; null-db.shell

0 comments on commit 92d76c0

Please sign in to comment.