Haskell in Nixpkgs/NixOS | 719 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 144 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 Apr 2025 | ||
| 24.11? | 12:33:40 | |
| 24 Apr 2025 | ||
| 01:16:55 | ||
| 12:50:31 | ||
| 14:13:49 | ||
| Hey folks, I'm working on getting I'd like to make a PR for nixpkgs, so I've checked out
But when I do this, I get
if I go into the | 14:14:29 | |
| 14:21:59 | ||
| Peter Dragos: Its likely that those dependencies were not present in the version of accelerate which is in that nixpkgs checkout. You are reusing the derivation for another version of the package there, just swapping the src. | 14:37:35 | |
| Is there no newer release of accelerate? | 14:38:10 | |
| A possible solution is to manually add the missing dependencies with further overrides on the package. | 14:39:43 | |
I far as I can tell, the latest version of accelerate on hackage has the same base constraints | 14:43:58 | |
| I'll give this a shot, thanks | 14:44:06 | |
| Why are you mentioning base constraints? They don’t appear in your error message. | 14:44:58 | |
| Huh, I see your point. Last release 5 years ago. Unclear whether you can compile this against a current ghc. | 14:47:56 | |
| Sorry, I originally asked over in the Haskell matrix and then realized it was better off here. The relevant info is that the version in
| 14:48:28 | |
Well then first you try doJailbreak. | 14:49:12 | |
| If it works it’s the easiest solution. But it probably doesn’t … | 14:49:39 | |
But the repository itself (link] is active. Jailbreaking didn't work, so someone suggested pulling directly from the repo. I got that to build on 24.11 with one other dontCheck on a dependency, but haskell-updates has the issue mentioned above | 14:50:07 | |
* But the repository itself (link) is active. Jailbreaking didn't work, so someone suggested pulling directly from the repo. I got that to build on 24.11 with one other dontCheck on a dependency, but haskell-updates has the issue mentioned above | 14:50:19 | |
| Huh, then I am confused. | 14:50:50 | |
| Because my explanation should also mean that it doesn’t work on 24.11. Since the derivation clearly hasn’t changed for years. | 14:51:20 | |
| Just to be sure: The error message appears in the build of accelerate and not in one of its dependencies? | 14:52:02 | |
| Huh, you used callCabal2nix or something similar on 24.11, right? Because the accelerate derivation in nixpkgs indeed does not mention mircolens, formatting or double-conversion. | 14:53:35 | |
| I did, yes. My complete overlay was
| 14:54:53 | |
| and the command I'm using to try the build is
| 14:56:16 | |
| I guess at this point the cleanest solution would be a) get upstream to make a release or b) create a new accelerate-unstable derivation with cabal2nix in nixpkgs and use it to completely replace the existing derivation. cachix does it like that, iirc. | 14:56:47 | |
| which aligns with what you're finding. So i guess I'd need to do a slightly more involved override for the derivation to add those dependencies (and possibly other fix-ups)? | 14:56:58 | |
| But otherwise you can probably get by by just adding the dependencies like I described. | 14:57:12 | |
| great. I'll give it a go, thank you! | 14:58:54 | |
| Worked great! | 15:30:28 | |
| 18:41:45 | ||