Follow

question! So I can't upgrade the package gtk2hs-buildtools-0.13.4.0 because of a cabal version constraint problem. I'm going to report it, but in the meantime how could I update the derivations left to upgrade?

@otini Check out nixpkgs repo, create new branch, modify the Nix-expression, specify that your nixpkgs tree for nix-env (-I)?

@amiloradovsky Which expression should I modify to ignore an update? 😐

@otini I have exactly zero experience with Cabal, so I probably can't help with that.

@kwarrtz Yes, but I favor Nix's haskellPackages over Stack because haskellPackages contains binaries, so I don't have the long compilation times 🙂 it's weird, by the way, to have a Cabal error if I'm not supposed to compile anything… 🤔

@otini Binaries are indeed a time saver :) I’m afraid I don’t know enough about haskellPackages to offer much specific help, but would it be possible to build gtk2hs from source and link into it directly in your project?

@otini So I take it you understand something in compiling an existing cabal project with the newest changes in cabal ? I upgraded ghc on my system, apparently got the new cabal and I'm stuck with prefixing everything with «v1-». Can we now write nix derivation instead of .cabal files ? I'm completely lost and don't understand exactly what has changed 😕
@alice @otini

v2-build uses a nix-like store, so you get caching and no conflicts. You should use that if you don't have a particular reason to use v1

Cabal, Nix, organised confusion Show more

@alice
> So I take it you understand something in compiling an existing cabal project with the newest changes in cabal ?

Not really, I stopped developing industrial software in Haskell around the time when breaking changes were introduced into cabal 😕

> Can we now write nix derivation instead of .cabal files?

Err, to my knowledge the integration of Haskell into Nix is not that good yet.

@otini Ok thanks ! Shame, that would've been fun 😁
Sign in to participate in the conversation
Functional Café

functional.cafe is an instance for people interested in functional programming and languages.