!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

706 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/142 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
26 Oct 2025
@alexfmpe:matrix.orgalexfmpe* should shellFor have a withCabal boolean or so? in the native case it can just go in nativeBuildInputs, but since for cross shellFor what we place in PATH isn't `ghc` but `<prefix>-ghc` you need this sort of wrapping https://gitlab.haskell.org/haskell-wasm/ghc-wasm-meta/-/blob/104d440e93fc05fefd36441e95013eda4b06f611/pkgs/wasm32-wasi-cabal.nix#L62-67 another option is having unprefixed `ghc`, `ghc-pkg`, etc point to the prefixed ones15:37:42
@alexfmpe:matrix.orgalexfmpe* should shellFor have a `withCabal` boolean or so? in the native case it can just go in nativeBuildInputs, but since for cross shellFor what we place in PATH isn't `ghc` but `<prefix>-ghc` you need this sort of wrapping https://gitlab.haskell.org/haskell-wasm/ghc-wasm-meta/-/blob/104d440e93fc05fefd36441e95013eda4b06f611/pkgs/wasm32-wasi-cabal.nix#L62-67 another option is having unprefixed `ghc`, `ghc-pkg`, etc point to the prefixed ones15:40:31
27 Oct 2025
@sternenseemann:systemli.orgsterniwell it implicitly assumes you need to compile Setup.hs13:47:17
@alexfmpe:matrix.orgalexfmpehmm I see, you always potentially need native ghc for that14:24:12
@alexfmpe:matrix.orgalexfmpebut it makes sense to always wrap cross cabal no? otherwise what is its point14:32:08
@alexfmpe:matrix.orgalexfmpe* but it makes sense to always wrap cabal from the pkgsCros set no? otherwise what is its point14:32:19
@amadaluzia:tchncs.deamadaluzia[tde] joined the room.23:56:39
29 Oct 2025
@NickSeagull:matrix.orgNickSeagull joined the room.19:32:52
30 Oct 2025
@sternenseemann:systemli.orgsternidifficult question imo06:31:28
@sternenseemann:systemli.orgsterniit would be nice to have the option, but it’s not clear to me how it should work06:31:48
@alexfmpe:matrix.orgalexfmpereminds me of https://github.com/NixOS/nixpkgs/issues/23774112:10:46

Show newer messages


Back to Room ListRoom Version: 6