haskell-nix / hnix-store

Haskell implementation of the Nix store
Apache License 2.0
85 stars 23 forks source link

hnix-store-{core,remote}: allow also `base16-bytestring < 1.0` #100

Closed Anton-Latukha closed 3 years ago

Anton-Latukha commented 3 years ago

When I first tried to fork & overload the cryptohash-sha512 in cabal.project, I enforced the base16-bytestring >= 1.0 requirement, that I encountered in HNix, and understood that the support of both epochs is very easy in cryptohash-sha512 and HNix-Store with a couple of lines of CPP macros.

So this is what this PR does. Allows downstream to use any version of base16-bytestring, the same probably would be done in HNix.

This also simplifies things with Nixpkgs, as standard base16-bytestring there is 0.1.1.7, so supporting both means Store works in Nixpkgs in any case.