Skip to content

Conversation

@cdepillabout
Copy link
Owner

@cdepillabout cdepillabout commented Mar 5, 2025

Expose some additional passthru values on Haskell derivations generated with stacklock2nix.

All Haskell derivations generated with stacklock2nix now have a passthru.stacklock2nix key, which is an attrset filled with the following keys. All keys have a Bool value:

  • is-local-pkg: Is this a local package defined in stack.yaml?
  • is-extra-dep: Is this an extra-dep defined in stack.yaml?
  • is-hackage-dep: Is this a dep from Hackage?
  • is-git-dep: Is this a dep from Git?
  • is-url-dep: Is this a dep from a URL?

See the tests added in this PR for some examples of how to use these new keys.

@cdepillabout cdepillabout force-pushed the add-stacklock2nix-passthru branch 2 times, most recently from d9372a1 to b084332 Compare March 7, 2025 06:08
@cdepillabout cdepillabout force-pushed the add-stacklock2nix-passthru branch from b084332 to 2d70b91 Compare March 7, 2025 06:55
@cdepillabout cdepillabout marked this pull request as ready for review March 7, 2025 07:32
@cdepillabout cdepillabout merged commit 47dd3fb into main Mar 7, 2025
2 checks passed
@cdepillabout cdepillabout deleted the add-stacklock2nix-passthru branch March 7, 2025 07:32
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.

2 participants