refactor(nix): dev shells (#634)

This commit is contained in:
doprz
2025-10-12 20:47:47 -07:00
committed by GitHub
parent 46fe591fa7
commit 64baa6d290
2 changed files with 19 additions and 12 deletions

View File

@@ -14,22 +14,29 @@
system:
let
pkgs = (import nixpkgs { inherit system; });
commonPackages = with pkgs; [
nodejs_20 # v20.19.5
pnpm_10 # v10.18.0
];
additionalPackages = with pkgs; [
bun
nodePackages.conventional-changelog-cli
sentry-cli
];
in
{
formatter = pkgs.nixfmt-rfc-style;
devShells.default = pkgs.mkShell {
name = "utrp-dev";
buildInputs = with pkgs; [
nodejs_20 # v20.19.4
pnpm_10 # v10.14.0
];
buildInputs = commonPackages;
};
shellHook = ''
echo "UTRP Nix Flake Environment Loaded"
echo "Node: $(node --version)"
echo "pnpm: $(pnpm --version)"
'';
devShells.full = pkgs.mkShell {
name = "utrp-dev-full";
buildInputs = commonPackages ++ additionalPackages;
};
}
);