uuid
package cannot be overrided with Git source
#408
-
I would like to use a fork of the uuid package as suggested in https://community.flake.parts/haskell-flake/dependency#path inputs = {
# uuid v7 support
uuid-repo.url = "github:LaurentRDC/uuid/594487ca4d606f767833f390714195eedcd2886e";
uuid-repo.flake = false;
...
packages.uuid.source = "${inputs.uuid-repo}/uuid"; But that fork uses the same version number as in the base packages and there uses the hash of that base pacakage, which doesn't fit: error: hash mismatch in fixed-output derivation '/nix/store/b4b4bfd3b8jbychnw0p68qyc3inyz1pn-uuid-1.3.16-r1.cabal.drv':
specified: sha256-JicgiD0dTsUZap8e/jq1N064cVkrSt1QsquIEmL5H3E=
got: sha256-DjFOT5Z8TV66pOw/mTaCjgf5Qg5HAgOEQaJx/0Iieek=
error: 1 dependencies of derivation '/nix/store/qm1v419qbicxfdnj8mwxqhlpvz2vn5sn-uuid-1.3.16.drv' failed to build How can i override the hash? I can't find any attribute in e.g. https://github.com/srid/haskell-flake/blob/master/nix/modules/project/settings/all.nix. Maybe this fyi: ...settings.uuid.patches = [ ./uuid-version-bump.patch ]; The patch seems to be applied too late for the version number extraction. Creating a fork with the version number changed to 1.3.17 goes a bit further, but fails later with error: builder for '/nix/store/nm120iy3nnlnjdlifx16nsj49ifv2ikx-uuid-1.3.17-r1.cabal.drv' failed with exit code 1;
last 19 log lines:
>
> trying https://hackage.haskell.org/package/uuid-1.3.17/revision/1.cabal
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
> curl: (22) The requested URL returned error: 404 It still apparently tries to get revision information from Hackage. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You lost me there. What is this hash you are referring to? (I don't think you are referring to the flake input's hash) Make sure that you override all 3 packages:
This is strange too.
This is like applying a bandaid that doesn't address the root issue, no? Is it just the |
Beta Was this translation helpful? Give feedback.
I think i figured it out: