Package the Nim spec as a reusable Nix flake #7

Merged
lost-rob0t merged 9 commits from agent/package-spec-flake into dev 2026-08-04 21:32:14 +00:00
lost-rob0t commented 2026-07-26 23:43:08 +00:00 (Migrated from github.com)

What changed

  • adds a pinned Nix flake for the Nim 0.9.0 spec
  • exports packages.<system>.starintel-doc-nim and default
  • installs the Nimble package source at a stable dependency path
  • exports devShells and overlays.default
  • supports x86_64-linux and aarch64-linux
  • adds Nix flake CI

Why

Downstream Nim derivations can now consume the spec source directly from a flake package and add its exported source path to Nim's module search path.

The repository does not currently contain the JSON dependency lock required by nixpkgs buildNimPackage, so this PR packages the dependency source rather than pretending to provide a reproducible compiled binary.

Validation

nimble dump, nix flake show --all-systems, and nix flake check --show-trace run through the package/CI path.

## What changed - adds a pinned Nix flake for the Nim 0.9.0 spec - exports `packages.<system>.starintel-doc-nim` and `default` - installs the Nimble package source at a stable dependency path - exports `devShells` and `overlays.default` - supports x86_64-linux and aarch64-linux - adds Nix flake CI ## Why Downstream Nim derivations can now consume the spec source directly from a flake package and add its exported source path to Nim's module search path. The repository does not currently contain the JSON dependency lock required by nixpkgs `buildNimPackage`, so this PR packages the dependency source rather than pretending to provide a reproducible compiled binary. ## Validation `nimble dump`, `nix flake show --all-systems`, and `nix flake check --show-trace` run through the package/CI path.
Sign in to join this conversation.
No description provided.