stack2nix icon indicating copy to clipboard operation
stack2nix copied to clipboard

conditional packages based on GHC version mismatch between cabal2nix and stack

Open domenkozar opened this issue 7 years ago • 1 comments

If a cabal file has:

        if impl (ghc < 8.4)
          build-depends: ghc-syb-utils

Then stack using GHC 8.4.x won't consider it as dependency while cabal2nix will. This results into missing "ghc-syb-utils" attribute since package wasn't generated due to stack build plan.

domenkozar avatar Jul 08 '18 12:07 domenkozar

This may have been fixed with https://github.com/input-output-hk/stack2nix/pull/115

domenkozar avatar Aug 14 '18 10:08 domenkozar