!RbXGJhHMsnQcNIDFWN:nixos.org

Nix Haskell

606 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 infrastructure125 Servers

Load older messages


SenderMessageTime
19 Jun 2024
@maralorn:maralorn.demaralornBut it might not be trivial.^^09:54:07
@maralorn:maralorn.demaralornI think the eval errors are basically benign.09:54:38
@maralorn:maralorn.demaralornAnd the other problem is more a question on how to figure out how to solve it.09:55:22
@alexfmpe:matrix.orgalexfmpe
In reply to @maralorn:maralorn.de
Ah, I think https://github.com/NixOS/nixpkgs/pull/318363 is nearly ready for merge besides the last comment in that thread.
addressed them this morning, just had to wait couple hours for 8.10 ghcjs build on master to make sure I didn't break anything that wasn't already :x
11:53:02
@alexfmpe:matrix.orgalexfmpe
In reply to @maralorn:maralorn.de
Ah, I think https://github.com/NixOS/nixpkgs/pull/318363 is nearly ready for merge besides the last comment in that thread.
* addressed them this morning, just had to wait couple hours for 8.10 ghcjs build on master to make sure I didn't break anything that wasn't already before pushing :x
11:53:14
@alexfmpe:matrix.orgalexfmpehaskell.packages.ghcjs810 was pretty much cached on the haskell-updates branch11:53:51
@alexfmpe:matrix.orgalexfmpedunno if that's because those packages are more agresivelly cached on that branch, or the .nix changes triggered a ghcjs rebuild11:54:17
@alexfmpe:matrix.orgalexfmpehmm must be caching, I didn't rebuild ghcjs on that branch even with the changes IIRC11:55:02
@maralorn:maralorn.demaralorn alexfmpe: We generally have more hydra jobs for Haskell related stuff on haskell-updates than on master so stuff like this can happen. 11:55:21
@alexfmpe:matrix.orgalexfmpeI wasn't expecting ghcjs810 to be broken though11:56:11
@alexfmpe:matrix.orgalexfmpeor at least its ghcjs-base11:57:18
@alexfmpe:matrix.orgalexfmpehope we can finally turn off life support on that when 9.12 rolls around11:57:59
@alexfmpe:matrix.orgalexfmpe maralorn: sterni I'm very confused by that ghcjs-prim = null thing 12:33:23
@alexfmpe:matrix.orgalexfmpesomehow it seems to be needed on ghcjs package set as well12:33:47
@alexfmpe:matrix.orgalexfmpeotherwise $ nix-build -A haskell.packages.ghcjs810.ghcjs-base ... error: function 'anonymous lambda' called without required argument 'ghcjs-prim'12:34:09
@sternenseemann:systemli.orgsterni alexfmpe: the ghcjs package set has a semi automatically generated expression for ghcjs-base that doesn't default to null. It shouldn't be necessary in the normal package set, just for the ghcjs one. 12:34:24
@sternenseemann:systemli.orgsterni(assuming that ghcjs-prim is a core package)12:34:35
@alexfmpe:matrix.orgalexfmpeok then ghcjs-8 is the right nix file for it12:35:16
@alexfmpe:matrix.orgalexfmpewhy was it in configuration-common?12:35:21
@maralorn:maralorn.demaralornTo elaborate: There is no standalone ghcjs-prim derivation in nixpkgs, because ghcjs has that package included.12:35:23
@alexfmpe:matrix.orgalexfmpethat's where I got the comment from12:35:26
@sternenseemann:systemli.orgsternino clue, maybe it was required at some point12:35:35
@alexfmpe:matrix.orgalexfmpeguess the code is right and I'll just tweak the comment ?12:35:49
@alexfmpe:matrix.orgalexfmpesame thing happens on master FWIW12:35:59
21 Jun 2024
@mequbic:matrix.orgiqubic (she/her)So, how does nix handle haskell packages that provide both a library and an executable?05:37:11
@mequbic:matrix.orgiqubic (she/her)I'm looking at https://github.com/troydm/xmonad-dbus which is in nixpkgs. It's both a library that I want to use in my XMonad config, and also has an executable that I can ask polybar to run so that polybar and xmonad can communicate.05:45:39
@mequbic:matrix.orgiqubic (she/her)Would that be possible?05:45:46
@maralorn:maralorn.demaralornYeah, of course.06:11:58
@maralorn:maralorn.demaralornThe package builds an thus contains both an can be used as both.06:12:35
@janik0:matrix.org@janik0:matrix.org left the room.09:14:43

There are no newer messages yet.


Back to Room ListRoom Version: 6