NixOS / jailbreak-cabal

Strip version restrictions from build dependencies in Cabal files.
http://hackage.haskell.org/package/jailbreak-cabal
BSD 3-Clause "New" or "Revised" License
10 stars 11 forks source link

Weird output when using with Cabal 1.22.x to process arithmoi #3

Closed peti closed 9 years ago

peti commented 9 years ago

The arithmoi Cabal file says:

library
    build-depends       : base >= 4 && < 5, array >= 0.3 && < 0.6, ghc-prim,
                          integer-gmp, containers >= 0.3 && < 0.6, random >= 1.0 && < 1.1,
                          mtl >= 2.0 && < 2.3

jailbreak-cabal transforms this to:

library
    build-depends:
        base -any,
        array -any,
        ghc-prim -any,
        integer-gmp -any,
        containers -any,
        random -any,
        mtl -any

    ...

    build-depends:
        base >=4 && <5,
        array >=0.3 && <0.6,
        ghc-prim -any,
        integer-gmp -any,
        containers >=0.3 && <0.6,
        random >=1.0 && <1.1,
        mtl >=2.0 && <2.3

Strangely enough, this issue seems to occur only with Cabal 1.22.x. In version 1.20.x we didn't have that problem.

shlevy commented 9 years ago

This seems to be blocking jailbreaking for haskell-ng.packages.ghcHEAD

shlevy commented 9 years ago

(working on a workaround where the jailbreak-cabal binary used for HEAD builds comes from 7.8.4)

peti commented 9 years ago

Oh, I had the same idea. :-) I'll commit in a second if you don't beat me to it.

shlevy commented 9 years ago

I got caught up in making makeOverridable work for functions so that I could call override on mkDerivation, you'll probably win :grinning:

peti commented 9 years ago

Reported in https://github.com/haskell/cabal/issues/2343.