!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

678 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure134 Servers

Load older messages


SenderMessageTime
22 Oct 2025
@magic_rb:matrix.redalder.orgmagic_rb

hm, im getting this from nixpkgs:

       > [55 of 73] Compiling JavaScript.Web.Canvas.ImageData ( JavaScript/Web/Canvas/ImageData.hs, dist/build/JavaScript/Web/Canvas/ImageData.o )
       > [56 of 73] Compiling JavaScript.Web.Canvas ( JavaScript/Web/Canvas.hs, dist/build/JavaScript/Web/Canvas.o )ipt/Web/Canvas/Internal.o )
       > [57 of 73] Compiling JavaScript.Web.Canvas.TextMetrics ( JavaScript/Web/Canvas/TextMetrics.hs, dist/build/JavaScript/Web/Canvas/TextMetrics.o )
       > [58 of 73] Compiling JavaScript.Web.CloseEvent.Internal ( JavaScript/Web/CloseEvent/Internal.hs, dist/build/JavaScript/Web/CloseEvent/Internal.o )
       > [59 of 73] Compiling JavaScript.Web.CloseEvent ( JavaScript/Web/CloseEvent.hs, dist/build/JavaScript/Web/CloseEvent.o )ionFrame.o )
       > [60 of 73] Compiling JavaScript.Web.ErrorEvent.Internal ( JavaScript/Web/ErrorEvent/Internal.hs, dist/build/JavaScript/Web/ErrorEvent/Internal.o )
       > [61 of 73] Compiling JavaScript.Web.ErrorEvent ( JavaScript/Web/ErrorEvent.hs, dist/build/JavaScript/Web/ErrorEvent.o )
       > [62 of 73] Compiling JavaScript.Web.File ( JavaScript/Web/File.hs, dist/build/JavaScript/Web/File.o )1;
       > [63 of 73] Compiling JavaScript.Web.History ( JavaScript/Web/History.hs, dist/build/JavaScript/Web/History.o )
       > [64 of 73] Compiling JavaScript.Web.Location ( JavaScript/Web/Location.hs, dist/build/JavaScript/Web/Location.o )
       > [65 of 73] Compiling JavaScript.Web.MessageEvent.Internal ( JavaScript/Web/MessageEvent/Internal.hs, dist/build/JavaScript/Web/MessageEvent/Internal.o )
       > [66 of 73] Compiling JavaScript.Web.MessageEvent ( JavaScript/Web/MessageEvent.hs, dist/build/JavaScript/Web/MessageEvent.o )
       > [67 of 73] Compiling JavaScript.Web.Performance ( JavaScript/Web/Performance.hs, dist/build/JavaScript/Web/Performance.o )
       > [68 of 73] Compiling JavaScript.Web.Storage.Internal ( JavaScript/Web/Storage/Internal.hs, dist/build/JavaScript/Web/Storage/Internal.o )
       > [69 of 73] Compiling JavaScript.Web.Storage ( JavaScript/Web/Storage.hs, dist/build/JavaScript/Web/Storage.o )
       > [70 of 73] Compiling JavaScript.Web.StorageEvent ( JavaScript/Web/StorageEvent.hs, dist/build/JavaScript/Web/StorageEvent.o )
       > [71 of 73] Compiling JavaScript.Web.WebSocket ( JavaScript/Web/WebSocket.hs, dist/build/JavaScript/Web/WebSocket.o )
       > [72 of 73] Compiling JavaScript.Web.Worker ( JavaScript/Web/Worker.hs, dist/build/JavaScript/Web/Worker.o )
       > [73 of 73] Compiling JavaScript.Web.XMLHttpRequest ( JavaScript/Web/XMLHttpRequest.hs, dist/build/JavaScript/Web/XMLHttpRequest.o )
       > javascript-unknown-ghcjs-ghc-9.10.3: JavaScript C pre-processor: could not execute:
       For full logs, run:
         nix log /nix/store/b9y291nv2niv71aggzy6l5gnhvn6qkdx-ghcjs-base-0.8.0.4.drv
error: 1 dependencies of derivation '/nix/store/fpfwgskiyns3lbfa23b98mzmnknzvy0s-jsaddle-0.9.9.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fwfk823qa6ghsxy3ba95k9a06ij4w4m5-miso-1.8.7.0.drv' failed to build

weird

20:24:03
@magic_rb:matrix.redalder.orgmagic_rbits an interesting failure, very, not helpful20:24:57
23 Oct 2025
@alexfmpe:matrix.orgalexfmpemight want to try 9.12 from recent nixpkgs17:23:06
@alexfmpe:matrix.orgalexfmpepkgsCross.ghcjs.haskell.packages.ghc912 has cached miso and reflex-dom, which means a lot of other packages are also cached by being their deps17:23:38
@alexfmpe:matrix.orgalexfmpe I get nix-build -A pkgsCross.ghcjs.haskell.packages.ghc912.ghcjs-base from cache on https://github.com/NixOS/nixpkgs/commit/c90b7f75f4e9d4dffcdc30261f565da1e261d468 which is just a few days old 17:26:32
@alexfmpe:matrix.orgalexfmpe magic_rb: ^ 17:26:42
@dandart:matrix.orgPeriI kind of gave up with ghcjs when it started giving cryptic errors so I moved my stack over to wasm17:27:18
@alexfmpe:matrix.orgalexfmpejs backend is recent enough I wouldn't bother much with anything older than 9.12 17:27:21
@alexfmpe:matrix.orgalexfmpebut yeah, wasm is very much an option17:27:59
@alexfmpe:matrix.orgalexfmpefunnily enough eval of this is broken on master and on present haskell-updates, looks like something got merged very recently 17:28:51
@alexfmpe:matrix.orgalexfmpe
$ nix-build -A pkgsCross.ghcjs.haskell.packages.ghc912.hello      
error: no C compiler provided for this platform
17:30:22
@alexfmpe:matrix.orgalexfmpeyay17:30:26
@alexfmpe:matrix.orgalexfmpebisect was pretty quick: this broke eval: https://github.com/NixOS/nixpkgs/pull/36659317:39:01
@alexfmpe:matrix.orgalexfmpe somehow we're getting a
ghcjs -> emscripten -> openjdk -> python -> openssl
that ends up trying to eval stdenv.cc.isGnu that then throws because there's no c compiler
17:51:32
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @alexfmpe:matrix.org
js backend is recent enough I wouldn't bother much with anything older than 9.12
mhm i actully figured it out, but i had to apply https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14882 but using sed
17:54:57
@magic_rb:matrix.redalder.orgmagic_rb had to add both HEAP8 and HEAPU8 17:55:12
@alexfmpe:matrix.orgalexfmpeah ok, keep in mind I 'backported' that last week17:58:28
@alexfmpe:matrix.orgalexfmpehttps://github.com/NixOS/nixpkgs/pull/45152717:58:28
@magic_rb:matrix.redalder.orgmagic_rbah, good to know18:47:06
@magic_rb:matrix.redalder.orgmagic_rbi need to bump nixpkgs anyway due to a broken aeson i think18:47:32
@alexfmpe:matrix.orgalexfmpemight want to bump to the commit above, at least until the eval error is sorted out19:20:10
@alexfmpe:matrix.orgalexfmpe^19:20:15
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @alexfmpe:matrix.org
might want to bump to the commit above, at least until the eval error is sorted out
compiling for me, still not working, but neither jsaddle nor js is working so i think im doing something very very wrong
19:29:39
@alexfmpe:matrix.orgalexfmpewhat does 'not working' mean19:30:01
@magic_rb:matrix.redalder.orgmagic_rbclipboard.png
Download clipboard.png
19:30:33
@magic_rb:matrix.redalder.orgmagic_rbsame error on both js and jsaddle19:30:40
@magic_rb:matrix.redalder.orgmagic_rb🤔19:30:45
@magic_rb:matrix.redalder.orgmagic_rbthis is miso so maybe miso is broken, ill try a different commit ig19:31:01
@alexfmpe:matrix.orgalexfmpecan you expand the error on the browser console?19:39:57
@magic_rb:matrix.redalder.orgmagic_rbrolling back miso "fixed it" i may revisit this at some point but rn i actually want to write some code 🥲21:35:30

Show newer messages


Back to Room ListRoom Version: 6