+devshell structure
This commit is contained in:
23
flake.nix
23
flake.nix
@@ -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'
|
||||
|
Reference in New Issue
Block a user