Haskell in Nixpkgs/NixOS | 745 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.org | 149 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 Apr 2026 | ||
| Since it seems to be a separate output, I would recommend using a different derivation instead of overriding the existing ones. | 23:39:01 | |
| I was trying to get it to work via
and didn't manage to get a useful output that way, I did try to copy it from stage1 to stage2 later, but I've changed a bunch of code around this | 23:39:42 | |
currently I'm just doing a mkDerivation inheriting from src etc from pkgs.haskell.compiler.microhs, then postInstall'ing mhseval, so that works | 23:40:24 | |
Is your ultimate desired hostPlatform one of the JS platforms? | 23:40:37 | |
| not doing JS at the minute, so I haven't tried that yet, I just anticipate that there'll be some interest for that as well | 23:41:07 | |
The other problem here is that mhseval is not in the Cabal file, so naturally the stage 2 build won't include it either. | 23:48:31 | |
Unless JS is supported as a buildPlatform, I think it might be best to first make microhs compatible with cross.I'm not sure what's missing for cross, but I suspect it has to do with the targetPlatform not being passed to the build. | 23:51:42 | |
| 1 May 2026 | ||
| Well, cross isn't terribly difficult. I've just gotten it working. | 00:46:32 | |
| 14:58:29 | ||
| I'm starting out with nix and having trouble with system library fiddling. GHC cannot load the shared object for
| 15:02:18 | |
I dunno about flakes, but nix-build -A haskellPackages.smtlib-backends-z3 on nixpkgs master works just fine on my macos | 15:04:23 | |
where hackage-packages.nix shows z3 on librarySystemDepends of smtlib-backends-z3 | 15:05:11 | |
ah, same for haskellPackages.z3 | 15:06:27 | |
huh, isn't packages for executables only? | 15:07:47 | |
| https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell | 15:07:48 | |
| * https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell-attributes | 15:07:56 | |
try inputsFrom | 15:08:04 | |
| Thanks! I will try inputsFrom, I don't have any clue about the differences. | 15:12:54 | |
| my link should explain it | 15:15:50 | |
| * my link above explains them | 15:15:59 | |
| you probably want the same for libllvm and libclang | 15:17:55 | |
| can we improve the whole https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-darwin.nix is littered with
I also run into it for some packages on darwin
| 16:45:24 | |
| * can we improve the whole https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-darwin.nix is littered with
I also run into it for some packages on darwin
| 16:45:47 | |
| huh, wait, maybe that's not the same "security" ? hard to tell with case insensitive system | 16:47:08 | |
| 20 May 2021 | ||
| 22:10:58 | ||
| 22:10:58 | ||
| 22:11:05 | ||
| 22:11:13 | ||
| 22:30:49 | ||
| 22:36:42 | ||