Skip to content

Conversation

@sternenseemann
Copy link
Member

The Bindings generated by hackage2nix and cabal2nix differ since the former may actually look at pkgs to figure out system dependencies. As a result some after the fact adjustments done for the benefit of hackage2nix may not be applicable to cabal2nix-generated expressions. In particular, cabal2nix will never generate a nullBinding for a system dependency that has not been successfully resolved in nixpkgs.

The added golden test cases would previously trigger this issue.

Resolves the issue described in #649.

The Bindings generated by hackage2nix and cabal2nix differ since the
former may actually look at pkgs to figure out system dependencies. As a
result some after the fact adjustments done for the benefit of
hackage2nix may not be applicable to cabal2nix-generated expressions. In
particular, cabal2nix will never generate a nullBinding for a system
dependency that has not been successfully resolved in nixpkgs.

The added golden test cases would previously trigger this issue.
@sternenseemann sternenseemann merged commit 001aa97 into master Mar 3, 2025
7 checks passed
@sternenseemann sternenseemann deleted the replace-no-fail branch March 3, 2025 10:52
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