* chore: add nix This could help contributers... contribute! * build: use turborepo pipelines for coordination instead of hacking it with sleeps and such.... * chore: update dev script now we're cooking with gas! no more hacks, no more awkward flags * chore: update pnpm version requirement you want to support v6?? then use a v6-compatible pnpm version * chore: update pnpm-lock
40 lines
807 B
Nix
40 lines
807 B
Nix
{
|
|
description = "The Blitzjs Monorepo";
|
|
nixConfig.bash-prompt = "\[nix:blitz\]$ ";
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
flake-utils,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
formatter = pkgs.alejandra;
|
|
|
|
devShells = {
|
|
default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
nodejs-18_x
|
|
];
|
|
|
|
shellHook = ''
|
|
mkdir -p $out/bin
|
|
${pkgs.nodejs-18_x}/bin/corepack enable --install-directory $out/bin
|
|
export PATH="$out/bin:$PATH"
|
|
'';
|
|
};
|
|
};
|
|
});
|
|
}
|