shells/nix: init devshell

Though, it has been added by accident (whoops). It's for real this time.
:)
This commit is contained in:
Gabriel Arazas 2022-09-01 09:56:57 +08:00
parent 9b3c3f6c1b
commit 881d015674
2 changed files with 9 additions and 3 deletions

View File

@ -4,6 +4,7 @@ with pkgs; {
flatpak = callPackage ./flatpak.nix { };
gnu = callPackage ./gnu.nix { };
gnome = callPackage ./gnome.nix { };
nix = callPackage ./nix.nix { };
hugo = callPackage ./hugo.nix { };
rust = callPackage ./rust.nix { };
tic-80 = callPackage ./tic-80.nix { };

View File

@ -1,8 +1,13 @@
{ mkShell, lib, nixfmt, rnix-lsp }:
# For usual Nix projects such as overlays, package repositories, and whatnot.
# Also, it's fun to have a file named `nix.nix`.
{ mkShell, lib, nixfmt, jq, rnix-lsp, rnix-hashes, nix-tree }:
mkShell {
packages = [
nixfmt
rnix-lsp
jq # It will use some JSON with its lockfile so better be ready to use this.
nixfmt # Ideally, it would be nicer if the codebase has their preferred formatter but we'll go with the most common formatter(?).
rnix-hashes # Quick utility for converting hashes.
rnix-lsp # Make your editing experience nicer with a nice language server.
nix-tree # Suprisingly nice exploration tool for your packages in the store directory.
];
}