| 1 Jun 2021 |
Las | Does the infrastructure not internally use cabal to build packages? | 13:38:24 |
Las | If it does use cabal, then IMO cabal should be included in the .env | 13:38:37 |
maralorn | It uses Cabal the library, not cabal-install the binary. | 13:38:44 |
Las | Ah | 13:38:55 |
Las | So theoretically I could just run ghc from the env and also just use the library then | 13:39:12 |
maralorn | Which is reasonable because that has less dependencies. | 13:39:13 |
maralorn | Yes, you could. | 13:39:23 |
maralorn | Allthough if your project has not Setup.hs you will need to make one yourself. | 13:39:49 |
maralorn | * Although if your project has not Setup.hs you will need to make one yourself. | 13:40:02 |
sterni (he/him) | generally we should advertise shellFor more, development environments and build environments are different things | 14:08:41 |
maralorn | True | 14:09:18 |
joe (he/him) | I really like developPackage | 14:10:08 |
maralorn | I have no clue what the difference is … | 14:10:28 |
maralorn | Why do we have both? | 14:10:35 |
sterni (he/him) | developPackage does some callCabal2nix magic | 14:10:51 |
sterni (he/him) | plus it can be both the derivation and the shell | 14:11:00 |
maralorn | Interesting | 14:11:36 |
pnotequalnp | 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 | 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 | haskell.compiler.ghc901 should be the package with the correct compiler. | 17:13:48 |
maralorn | * haskell.compiler.ghc901 should be the package with the correct compiler. | 17:14:06 |
maralorn | * 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 | how 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 | because symlinkJoin'ing two separate derivations doesn't feel like it's it | 21:47:37 |
sterni (he/him) | why not | 21:47:45 |
maralorn | do they need to be linked together in any way? | 21:47:59 |
sterni (he/him) | I mean you can copy them if you prefer that | 21:48:15 |
pennae | no, they just have to call each other | 21:48:18 |
pennae | symlinkJoin 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 | pennae: Doesn‘t really seem like a hack to me. | 21:49:31 |