Skip to content

Document the Nix integration test - #6

Merged
imattau merged 1 commit into
masterfrom
document-nix-integration-test
Sep 21, 2026
Merged

imattau merged 1 commit into
masterfrom
document-nix-integration-test

Conversation

@imattau

@imattau imattau commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/nixos-integration-test.md, recording an end-to-end validation of npack resolve for issue Add a NixOS-friendly way to consume npack releases #1: resolved npack's own real, live-published release (real relays, real Blossom server, real signed events -- not a mock), fed the JSON straight into a Nix derivation, and confirmed it builds and runs.
  • Nix's own fetchurl did the SHA-256 verification (independent of npack), and autoPatchelfHook satisfied the reported runtime_requires against nixpkgs' glibc.
  • Includes a negative control: tampering the SHA-256 makes Nix refuse the build (error: hash mismatch in fixed-output derivation), confirming the verification is load-bearing.
  • Links the doc from docs/roadmap.md's "Declarative and immutable OS integration" section (moved out of "remaining work" into "validated") and from the resolve section of docs/using-npack.md.

No code changes -- this is a docs-only PR recording a test that was run against production infrastructure (this repo's own published release), not something reproduced in CI.

🤖 Generated with Claude Code

Records the end-to-end validation of npack resolve's output shape:
resolving npack's own real, live-published release against real Nostr
relays/Blossom servers, then building a Nix derivation from that JSON
with pkgs.fetchurl doing the SHA-256 verification and autoPatchelfHook
satisfying runtime_requires. Includes a negative control confirming
Nix rejects a tampered hash. Links from the roadmap and resolve docs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@imattau
imattau merged commit de3c630 into master Sep 21, 2026
3 checks passed
@imattau
imattau deleted the document-nix-integration-test branch September 21, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant