!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

746 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org149 Servers

Load older messages


SenderMessageTime
1 Jun 2021
@maralorn:maralorn.demaralornYes, you could.13:39:23
@maralorn:maralorn.demaralornAllthough if your project has not Setup.hs you will need to make one yourself.13:39:49
@maralorn:maralorn.demaralorn * Although if your project has not Setup.hs you will need to make one yourself.13:40:02
@sternenseemann:systemli.orgsterni (he/him) generally we should advertise shellFor more, development environments and build environments are different things 14:08:41
@maralorn:maralorn.demaralornTrue14:09:18
@joe:monoid.aljoe (he/him) I really like developPackage 14:10:08
@maralorn:maralorn.demaralornI have no clue what the difference is …14:10:28
@maralorn:maralorn.demaralornWhy do we have both?14:10:35
@sternenseemann:systemli.orgsterni (he/him)developPackage does some callCabal2nix magic14:10:51
@sternenseemann:systemli.orgsterni (he/him)plus it can be both the derivation and the shell14:11:00
@maralorn:maralorn.demaralornInteresting14:11:36
@pnotequalnp:matrix.orgpnotequalnp How can I nix shell GHC 9? I haven't been able to figure out what path to use to get stuff out of haskellPackages. 17:12:15
@maralorn:maralorn.demaralorn pnotequalnp: Note that we don‘t have a lot of support for ghc 9 yet. But you can use haskell.packages.ghc901.<package-name> for ghc901 packages. 17:13:27
@maralorn:maralorn.demaralornhaskell.compiler.ghc901 should be the package with the correct compiler.17:13:48
@maralorn:maralorn.demaralorn * haskell.compiler.ghc901 should be the package with the correct compiler. 17:14:06
@maralorn:maralorn.demaralorn * pnotequalnp: Note that we don‘t have a lot of support for ghc 9 yet. But you can use haskell.packages.ghc901.<package-name> for ghc901 packages. 17:14:16
@pennae:matrix.eno.spacepennaehow does one write a proper derivation for a project that contains both haskell and c++ binaries that want to be shipped together (in the same bin dir)21:47:23
@pennae:matrix.eno.spacepennaebecause symlinkJoin'ing two separate derivations doesn't feel like it's it21:47:37
@sternenseemann:systemli.orgsterni (he/him)why not21:47:45
@maralorn:maralorn.demaralorndo they need to be linked together in any way?21:47:59
@sternenseemann:systemli.orgsterni (he/him)I mean you can copy them if you prefer that21:48:15
@pennae:matrix.eno.spacepennaeno, they just have to call each other21:48:18
@pennae:matrix.eno.spacepennaesymlinkJoin works perfectly, it just feels like a hack. but we have no clue what we're doing, so that feeling doesn't count for much :)21:48:58
@maralorn:maralorn.demaralorn pennae: Doesn‘t really seem like a hack to me. 21:49:31
@sternenseemann:systemli.orgsterni (he/him)well symlinking has the advantage that you can build both projects independently, so build time is halved21:49:35
@sternenseemann:systemli.orgsterni (he/him)like imagine you fix a typo in the C++ thing, then you have to wait for the haskell build as well if it's one drv21:49:57
@maralorn:maralorn.demaralorn pennae: But you are free to dangle the build of one of them into the derivation of the other one. 21:50:00
@pennae:matrix.eno.spacepennaedangle into..?21:50:21
@pennae:matrix.eno.spacepennaebuilding independently is nice, definitely21:51:02
@maralorn:maralorn.demaralorn
In reply to @pennae:matrix.eno.space
dangle into..?
I thought that would be a word like "fiddle" "hack" in this case I meant "insert". Anyway what I wanted to say you can certainly solve it differently but it would be a lot more work.
21:54:14

Show newer messages


Back to Room ListRoom Version: 6