Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
{
description = "Dev shell for dryvist Cribl pack template — delegates to nix-devenv's typescript shell.";
description = "Dev shell for dryvist Cribl pack template — delegates to nix-devenv's typescript subflake.";

# Pin to the typescript SUBFLAKE (?dir=shells/typescript), not the root
# nix-devenv flake. The root flake imports cachix/devenv to support its
# Python/AI shells (ai-dev, orchestrator, mlx-server), which drags in a
# huge transitive tree (cachix x3, gitignore x5, nixpkgs x5, etc.). The
# typescript subflake has exactly one input — nixpkgs — and the lock file
# stays tiny. The `follows` declaration ensures even that one input shares
# our root nixpkgs rather than pulling its own copy.
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-25.11-darwin";
nix-devenv.url = "github:JacobPEvans/nix-devenv";
nix-devenv = {
url = "github:JacobPEvans/nix-devenv?dir=shells/typescript";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs =
Expand All @@ -22,8 +32,9 @@
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
# The subflake exposes its sole shell as `default`.
devShells = forAllSystems (system: {
default = nix-devenv.devShells.${system}.typescript;
default = nix-devenv.devShells.${system}.default;
});
};
}