Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling from darcs zip file results in unpacking failure. #614

Open
locallycompact opened this issue Jan 20, 2024 · 2 comments
Open

Pulling from darcs zip file results in unpacking failure. #614

locallycompact opened this issue Jan 20, 2024 · 2 comments

Comments

@locallycompact
Copy link

cabal2nix generates this expression from https://hub.darcs.net/darcs/darcs-screened/dist but that then does not unpack properly

Expression:

https://gitlab.horizon-haskell.net/package-sets/horizon-devtools/-/blob/d851e6e891726af219841af51fcb98dc7a747a28/pkgs/darcs.nix

Failure:

https://gitlab.horizon-haskell.net/package-sets/horizon-devtools/-/jobs/1138736

@sternenseemann
Copy link
Member

Can you paste the log here? Seems to have disappeared.

@sternenseemann
Copy link
Member

Ah, this is probably because stdenv only decides on the unpacker based on the file extension. nix-prefetch-url --unpack is a bit overzealous here. You can solve this with various approaches via overrides. Not sure how cabal2nix should deal with this issues if at all. I can't really think of a clean solution.

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

No branches or pull requests

2 participants