Skip to content

Conversation

@rafaelrc7
Copy link

Hello, I'm not sure what the contribution rules are, so if there is something wrong with this PR, just tell!

I recently added haskell.nix to a small personal project of mine, so that I could cross-compile it to windows for a friend. However, a dependency crypton-x509-system-x86_64-w64-mingw32-1.8.0 is broken, erroring with:

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/8ya3jdj421m43b0js8g5vmgdqfav0g60-crypton-x509-system-1.8.0.tar.gz
source root is crypton-x509-system-1.8.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "crypton-x509-system-1.8.0/System/X509/Win32.hs"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
'/build/.attr-0h9ydb7s8pfhl5kfs3rmmwnmpi49yyiw7jgr5dpw9rmvv8sy0f2b' -> 'crypton-x509-system.cabal'
applying patch /nix/store/qvks3j7cg4w0ai8l12qp01rj4mih929k-crypton-x509-system.patch
patching file crypton-x509-system.cabal
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file crypton-x509-system.cabal.rej

Basically, this package was recently updated and its cabal file changed, making the hakell.nix patch fail. I updated the patch and using it, my project builds fine. I can confirm this change is the only thing needed to fix it by changing my flake input to haskellNix.url = "github:rafaelrc7/haskell.nix/fix/crypton-x509-system-win";.

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