Closed rihardsk closed 5 years ago
Is this on latest static-haskell-nix master, commit eb48d1ebd7f3bcc36d0316c96c2f5058f12d70c3, and with the nixpkgs
submodule updated appropriately with git submodule update --init --recursive
?
This kind of failure looks exactly like something I'm currently working on (updating to latest nixpkgs master), so I suspect you're doing something similar.
Yes I'm on eb48d1e
and I've updated the submodule.
I suspected that it might be related to PR #45. Is that the case?
I'm not sure what's going on yet but I found some things I don't understand in https://github.com/NixOS/nixpkgs/issues/66598, maybe this one is similar.
OK, this is indeed the same problem as in https://github.com/NixOS/nixpkgs/issues/66598, a fixed-output
problem:
The way I overrode curl
, it wouldn't compile when pulled in via fetchpatch
(see points in https://github.com/nh2/static-haskell-nix/issues/6#issuecomment-521377254), but because hmatrix-Allow-disabling-random_r-usage-manually.patch
is a fixed-output derivation, it didn't try to build that curl. Only when one doesn't have downloaded hmatrix-Allow-disabling-random_r-usage-manually.patch
at all yet (I had, you hadn't) did this issue surface.
I reproduced it on a from-scratch throwaway AWS NixOS machine as mentioned in https://github.com/NixOS/nixpkgs/issues/66598, and could reproduce.
So indeed it's #45 as you said, and should be fixed with my next update to nixpkgs master that I'll hopefully finish soon (progress in https://github.com/nh2/static-haskell-nix/issues/6#issuecomment-521377254).
Yep, my test shows that this is fixed with commit 4f57531b726331900844ed73d196191369c387bb (currently on branch nixpkgs-master-2019-08-10-issue-66490-zlib-cleanup
), can you try that (also needs a submodules update)?
Yup, that helped, hmatrix
now builds successfully. Thank you!
And more generally - thank you for this repo. It feels almost magical to be able to do these things :)
And more generally - thank you for this repo. It feels almost magical to be able to do these things :)
Just restoring some normality in the world; in theory and originally, static linking was the default -- as it is much simpler than the fancy hack we call dynamic linking :)
Tried to build
hamtrix
withand got a build error for
curl
. Here's the last bit of the build output: