Gabriella439 / Haskell-Nix-Derivation-Library

Parse and render *.drv files
BSD 3-Clause "New" or "Revised" License
37 stars 10 forks source link

Bump bounds, update CI #22

Closed sorki closed 12 months ago

sorki commented 1 year ago

My version of https://github.com/sorki/github-actions-dhall/ is now a proper fork of the original. Switches CI to use defaultCi3 (https://github.com/sorki/github-actions-dhall/#ghc-versions) which currently tests with

Couple of bounds were bumped. I don't think this requires a release for now.

sorki commented 1 year ago

+ badges :rocket:

sorki commented 1 year ago

After trying to update nix-diff in similar fashion I've realized a release or Hackage revision would be nice as nix-build is failing there with

error: builder for '/nix/store/qkdxd8qdp7qsla159x4yxaq4lasr5lym-nix-derivation-1.1.1.drv' failed with exit code 1;
...
       > Error: Setup: Encountered missing or private dependencies:
       > attoparsec >=0.12.0.0 && <0.14,
       > text >=0.8.0.0 && <1.3,
       > vector <0.13
sorki commented 1 year ago

I've added Bifunctor instance for DerivationOutput which is pretty harmless and might help implementing conversion functions for Derivation easier. Sadly we can't have Bifunctor for Derivation due to Set. The sort-of motivation for this is that I've discovered that buildDerivation and parseDerivation won't round-trip with (generic) Arbitrary Text as it contains things like control characters and UTF8 sequences (it's not really important and could be persuaded with some tweaks to the generator / custom instances).