| 26 Dec 2025 |
Jack | Hi everyone. Thanks for all the work you do. Is there a nice way to force GHC to use the llvm backend in a similar way to pkgs.pkgsLLVM? I've noticed that if you dig in in the repl at `nixpkgs#haskell.compliler.ghc914.llvmPackages' it has what looks like a set "-fllvm"-satisfying dependencies. | 19:12:09 |
Jack | In short, I'm trying to override and use "-fllvm" for all my dependencies but I can't find a better way than:
monad-par.extraBuildFlags = ["--ghc-options=-fllvm"];
monad-par.extraPkgconfigDepends = [
pkgs.llvmPackages_20.clang
pkgs.llvmPackages_20.libllvm
]
;
for all of them
| 19:13:35 |
| 27 Dec 2025 |
| das-g changed their display name from das-g to das-g (DECT 7881). | 13:21:37 |
sterni (he/him) | Jack: you can use forceLlvmCodegenBackend from the package set you are working with. It should also be possible to apply this globally by overriding mkDerivation | 17:53:25 |
Jack | fantastic! | 17:53:44 |
sterni (he/him) | https://github.com/NixOS/nixpkgs/blob/3aebc5e7ae7ca5e3aac2fc33b2d7f5d6e601cfa6/pkgs/development/haskell-modules/make-package-set.nix#L732-L752 | 17:54:19 |
Jack | thank you very much. I'm doing compression and llvm made a huge performance difference, so now I'm very curious of extending it to dependencies will also affect it. | 17:55:00 |
maralorn | Is it even possible to link object files from different llvm and native backend? | 18:00:01 |
sterni (he/him) | yes | 18:00:41 |
| Nyte changed their display name from realnyte to Nyte. | 21:22:08 |
| 28 Dec 2025 |
| Lenny. changed their display name from Lenny. to Lenny. ☎️5665. | 14:25:15 |
| 29 Dec 2025 |
MangoIV | I'm going nutz - I do doJailbreak hsuper.integer-logarithms as usual and it's build-type Simple and it fails with missing or private dependencies ghc-bignum <bla> installed <blup>
Is that something that happens only with ghc-bignum? Or does somebody know what's going on there?
| 10:44:45 |