!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 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.org143 Servers

Load older messages


SenderMessageTime
28 May 2025
@b:chreekat.netchreekathttps://downloads.haskell.org/ghc/latest/docs/users_guide/phases.html#ghc-flag-optc-option16:44:15
@artem.types:matrix.orgArtem
In reply to @maralorn:maralorn.de
sterni: When I want GHC to set a flag when calling cc during a compilation. Is there an environment variable I can set in my Haskell package derivation? Or is it correct that I can only set that variable during compilation of GHC via CONF_CC_OPTS_STAGE2. It seems kinda fishy to me because I basically only want to affect runtime behavior of the compiler.
I don't believe it can be done with env vars
17:38:26
@artem.types:matrix.orgArtem I think it's only the flags that @b:chreekat.net: mentioned 17:39:45
@alex:tunstall.xyzAlex
In reply to @maralorn:maralorn.de
sterni: When I want GHC to set a flag when calling cc during a compilation. Is there an environment variable I can set in my Haskell package derivation? Or is it correct that I can only set that variable during compilation of GHC via CONF_CC_OPTS_STAGE2. It seems kinda fishy to me because I basically only want to affect runtime behavior of the compiler.

Aren't you assuming that GHC calls cc?

It doesn't unless you're compiling C code or you have an unregisterised GHC.

Nixpkgs' cc-wrapper may allow you to add extra options via an environment variable.
I cannot recall what environment variables it reads.

17:41:18
@maralorn:maralorn.demaralornI think I figured it out.17:58:41
@maralorn:maralorn.demaralornAnd yes ghc calls cc. For c code and for linking.17:58:41
@maralorn:maralorn.demaralornWell I guess -optlc might actually do what I want also.18:19:06
@sternenseemann:systemli.orgsterni (he/him)-optc and friends is right yes18:54:28
@alex:tunstall.xyzAlexDoesn't it call ld for linking?19:22:42
@maralorn:maralorn.demaralornWell, at least not for the js backend. There emscripten is used for linking iiuc.21:34:09
@alexfmpe:matrix.orgalexfmpeclearly we should have ghci running natively on browsers instead of compiling to javascript to interpret21:40:35
29 May 2025
@sternenseemann:systemli.orgsterni (he/him)then -optl I guess, didn't read too carefully above09:18:05
@deeok:matrix.org@deeok:matrix.org joined the room.20:04:46
@sternenseemann:systemli.orgsterni (he/him) alexfmpe: okay about the android platform thing… I've realized I just remembering an amjoseph PR and hallucinated it was an actual feature in lib: https://github.com/NixOS/nixpkgs/pull/212188 23:49:07
@alexfmpe:matrix.orgalexfmpeAaah23:50:56
30 May 2025
@varikvalefor:matrix.orgla .varik. .VALefor. changed their profile picture.02:41:29
@jean-paul.:matrix.orgjean-paul.How do I specify that all of the test suites should be built, but none should be executed?12:51:47
@jean-paul.:matrix.orgjean-paul.One hack I see is to manually set "checkPhase" so it does nothing and set the other options as you would normally set them to build & run the tests12:57:05
@maralorn:maralorn.demaralornYay, staging moved to staging-next. Soon we can work on haskell-updates again.17:34:47
@alexfmpe:matrix.orgalexfmpeAh finally18:02:57
31 May 2025
@peterbecich:matrix.orgPeter Becich
./maintainers/scripts/haskell/regenerate-hackage-packages.sh

I believe is broken on staging, staging-next and haskell-updates. The first error in the output is:

error: builder for '/nix/store/xwayf8wqkcdxfma8apqhprgih1khk2d5-python3.13-beautifulsoup4-4.13.4.drv' failed with exit code 1;

would someone confirm this for me?

02:09:59
@peterbecich:matrix.orgPeter Becich created issue for beautifulsoup: https://github.com/NixOS/nixpkgs/issues/412556 02:34:15
@ethancedwards8:matrix.orgethancedwards8 joined the room.02:54:09
@peterbecich:matrix.orgPeter Becich Cherry pick beautifulsoup fix to haskell-updates, review please: https://github.com/NixOS/nixpkgs/pull/412733 18:46:35
@peterbecich:matrix.orgPeter BecichIs there an @ofborg command to add a label?18:51:19
@maralorn:maralorn.demaralorn @peterbecich:matrix.org thanks for the fix. However this breakage only happened because there was an accidental merge of staging into haskell-updates. We decided to resume work on the branch once that staging reaches master. Then we can merge master into haskell-updates. 20:09:47
@maralorn:maralorn.demaralorn * @peterbecich:matrix.org thanks for the fix. However this breakage only happened because there was an accidental merge of staging into haskell-updates. We decided to resume work on the branch once that staging reaches master. Then we can merge master into haskell-updates. Receiving all the fixes. 20:10:41
1 Jun 2025
@sternenseemann:systemli.orgsterni (he/him)https://github.com/NixOS/nixpkgs/pull/41304621:38:25
@sternenseemann:systemli.orgsterni (he/him)We need to resolve eval issues and can look into starting an eval tomorrow or in the next days, depending on how full the x86_64-linux queue is.21:49:12
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @mightyiam:matrix.org@mightyiam:matrix.org.22:58:02

Show newer messages


Back to Room ListRoom Version: 6