+devshell structure

This commit is contained in:
m3tam3re
2025-10-12 16:21:40 +02:00
parent 27d92a238b
commit 11755d832f
5 changed files with 375 additions and 19 deletions

View File

@@ -75,27 +75,14 @@
import ./lib {lib = pkgs.lib;}
);
# Development shell for working on this repository
# Development shells for various programming environments
# Usage: nix develop .#<shell-name>
# Available shells: default, rust, python, nodejs, go, cpp, web, devops, data-science
devShells = forAllSystems (
system: let
pkgs = pkgsFor system;
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [
nil # Nix LSP
nixpkgs-fmt # Nix formatter
nix-tree # Explore dependency trees
];
shellHook = ''
echo "🚀 m3ta-nixpkgs development environment"
echo "Available commands:"
echo " nix flake check - Check flake validity"
echo " nix flake show - Show flake outputs"
echo " nix build .#<pkg> - Build a package"
'';
};
}
in
import ./shells {inherit pkgs;}
);
# Formatter for 'nix fmt'