!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 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.org143 Servers

Load older messages


SenderMessageTime
1 Jun 2021
@Las:matrix.orgLasDoes the infrastructure not internally use cabal to build packages?13:38:24
@Las:matrix.orgLas If it does use cabal, then IMO cabal should be included in the .env 13:38:37
@maralorn:maralorn.demaralornIt uses Cabal the library, not cabal-install the binary.13:38:44
@Las:matrix.orgLasAh13:38:55
@Las:matrix.orgLasSo theoretically I could just run ghc from the env and also just use the library then13:39:12
@maralorn:maralorn.demaralornWhich is reasonable because that has less dependencies.13:39:13
@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

There are no newer messages yet.


Back to Room ListRoom Version: 6