!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

723 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.org145 Servers

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


SenderMessageTime
10 Jun 2025
@alexfmpe:matrix.orgalexfmpebut in the reflex-platform case, I thought warp was the default jsaddle15:39:57
@alexfmpe:matrix.orgalexfmpehttps://github.com/reflex-frp/reflex-platform/blob/2e0d31bc1b565eed02a3848cde0e0dbc4f33a2d4/project/default.nix#L12015:39:58
@alexfmpe:matrix.orgalexfmpeer, or rather, in r-p there's a nix setting for it15:40:11
@alexfmpe:matrix.orgalexfmpeand in obelisk it was made the default15:40:16
@maralorn:maralorn.demaralornNope15:40:37
@maralorn:maralorn.demaralornstdenv.targetPlatform.isJavascript15:40:55
@alexfmpe:matrix.orgalexfmpewhat15:41:08
@alexfmpe:matrix.orgalexfmpeoh are you checking on the compiler or on the package?15:41:26
@alexfmpe:matrix.orgalexfmpebecause for the package it's https://github.com/NixOS/nixpkgs/blob/50015e7b86465fd5bd10d79ffe9567b4483d6279/pkgs/development/haskell-modules/generic-builder.nix#L2415:41:33
@maralorn:maralorn.demaralornon the compiler15:41:37
@maralorn:maralorn.demaralornAh, I see.15:41:45
@alexfmpe:matrix.orgalexfmpethen it's shifted15:42:08
@alexfmpe:matrix.orgalexfmpeso there it's targetPlatform.isGhcjs15:42:15
@alexfmpe:matrix.orgalexfmpebecause the compiler targets the platform the package it compiles is ran/hosted on15:43:27
@alexfmpe:matrix.orgalexfmpedid I allucinate this? could have sworn it was the case but can't find it15:43:55
@maralorn:maralorn.demaralornI probably bricked that logic anyway by removing the reflex-plattform overrides15:45:43
@maralorn:maralorn.demaralorn * 15:45:55
@alexfmpe:matrix.orgalexfmpehttps://github.com/reflex-frp/reflex-platform/commit/93cb8ec441ebac3d68a9f982a1aa3ca55eb509e115:45:57
@alexfmpe:matrix.orgalexfmpethis is probably what confused me15:46:00
@maralorn:maralorn.demaralornOkay good to know. Now I know how to solve this properly. 🙏15:47:18
@alexfmpe:matrix.orgalexfmpeprobably not, though I was just wondering if the reflex-dom package should even have the jsaddle switch logic 15:48:21
@alexfmpe:matrix.orgalexfmpeafter all, miso or whatever needs the exact same cabal if pyramid and cpp imports no?15:48:55
@alexfmpe:matrix.orgalexfmpe shouldn't there be a jsaddle-cross or whatever where you always import your run :: JSM () -> IO () or so 15:49:18
@alexfmpe:matrix.orgalexfmpeand what that ends up as depends on platform and/or flags to that jsaddle package15:50:20
@dmjio:matrix.org@dmjio:matrix.org changed their display name from dmjio to dmjio 🍜.17:04:02
@dmjio:matrix.org@dmjio:matrix.org changed their display name from dmjio 🍜 to dmjio.17:05:03
@keypusher:matrix.orgkeypusher I have flake.nix that defines multiple packages. I wan't to launch a develop shell for a certain package (nix develop .#package-b), it seems it ignores the "nativeBuildInputs" in the "shellFor" declaration. Is there a way around this? 23:22:19
@keypusher:matrix.orgkeypusher * I have flake.nix that defines multiple packages. I want to launch a develop shell for a certain package (nix develop .#package-b), but it seems it ignores the "nativeBuildInputs" in the "shellFor" declaration. Is there a way around this? 23:22:49
11 Jun 2025
@cdepillabout:matrix.orgcdepillabout Can you post your code? In general I don't think things like nativeBuildInputs should be getting ignored. 00:19:00
@utdemir:matrix.orgutdemir left the room.02:09:16

Show newer messages


Back to Room ListRoom Version: 6