!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

714 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/142 Servers

Load older messages


SenderMessageTime
18 May 2025
@wildwestrom:nitro.chatwildwestromHere's the full trace. https://bpa.st/QC7A11:40:43
@sternenseemann:systemli.orgsterni (he/him)looks like the hard coded overrides are outdated in stacklock2nix https://github.com/cdepillabout/stacklock2nix/blob/108f6ab6d0208e3842443bea26dfd72b37d82f28/nix/build-support/stacklock2nix/cabal2nixArgsForPkg.nix#L12813:23:56
@wildwestrom:nitro.chatwildwestromDamn, alright. Guess I'll need a different approach.13:24:38
@sternenseemann:systemli.orgsterni (he/him)As is documented in that file you can pass your own overrides.13:25:42
@wildwestrom:nitro.chatwildwestrom
    overrides = final.lib.composeManyExtensions [
      (oldAttrs.overrides or (_: _: { }))

      final.lamdu-haskell-stacklock.stackYamlResolverOverlay
      final.lamdu-haskell-stacklock.stackYamlExtraDepsOverlay
      final.lamdu-haskell-stacklock.stackYamlLocalPkgsOverlay
      final.lamdu-haskell-stacklock.suggestedOverlay

      # (hfinal: hprev: {
      #   language-ecmascript = final.haskell.lib.dontCheck hprev.language-ecmascript;
      #   text-trie = final.haskell.lib.dontCheck hprev.text-trie;
      #   rocksdb-haskell = final.haskell.lib.dontCheck hprev.rocksdb-haskell;
      #   bindings-GLFW = final.haskell.lib.dontCheck hprev.bindings-GLFW;
      #   GLFW-b = final.haskell.lib.dontCheck hprev.GLFW-b;
      # })
    ];

I assume somewhere in here yeah?

This is my first time doing this. What would I put?

13:33:55
@sternenseemann:systemli.orgsterni (he/him)it's documented here https://github.com/cdepillabout/stacklock2nix/blob/108f6ab6d0208e3842443bea26dfd72b37d82f28/nix/build-support/stacklock2nix/default.nix#L27-L3113:41:21
@wildwestrom:nitro.chatwildwestromOk, that got me through the first couple errors. Now there's an infinite recursion. Not sure what to do about that. Here's what I'm working with: https://github.com/lamdu/lamdu/pull/241 Full Trace: https://bpa.st/GK4A14:42:39
@wildwestrom:nitro.chatwildwestromGoddamn, I fix one thing and another thing gets broken.16:50:03
@wildwestrom:nitro.chatwildwestromI think I got it!21:06:11
@wildwestrom:nitro.chatwildwestrom* I think found one that works!21:06:26
@wildwestrom:nitro.chatwildwestrom

Just a few warnings to deal with!

trace: WARNING: `cleanSourceWith` called on /nix/store/qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source without a `name`. Consider adding `name = "qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source";`
trace: WARNING: `cleanSourceWith` called on /nix/store/qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source without a `name`. Consider adding `name = "qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source";`
trace: WARNING: `cleanSourceWith` called on /nix/store/qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source without a `name`. Consider adding `name = "qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source";`
trace: WARNING: `cleanSourceWith` called on /nix/store/qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source without a `name`. Consider adding `name = "qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source";`
trace: WARNING: `cleanSourceWith` called on /nix/store/qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source without a `name`. Consider adding `name = "qg6ddpd4fg9xk1qj3vkig57n995gn0fd-source";`
trace: WARNING: license "LicenseRef-GPL" not found
trace: WARNING: license "LicenseRef-GPL" not found
21:08:04
19 May 2025
@wildwestrom:nitro.chatwildwestromNo idea how to deal with the warnings.01:38:52
@wildwestrom:nitro.chatwildwestromNevermind: https://github.com/input-output-hk/haskell.nix/issues/1157 I sure as hell don't know how to fix it, but there it is.01:53:31
@cdepillabout:matrix.orgcdepillabout I think stacklock2nix internally calls cleanSourceWith. Maybe that's where this warning is coming from? Maybe the cleanSourceWith call needs to be passed a name argument? 04:09:31
@cdepillabout:matrix.orgcdepillabout I'm not sure about the GPL warning. Maybe one of the Haskell packages sets its license as GPL (instead of possibly GPL2 or GPL3 which would be correct), and cabal2nix or the haskell stuff in nixpkgs is giving a warning about it? You might be able to figure out where the warning is coming from by grepping through the Nixpkgs repo for something like license.*not found. 04:11:37
@cdepillabout:matrix.orgcdepillabout * I'm not sure about the GPL warning. Maybe one of the Haskell packages you transitively depend on sets its license as GPL (instead of possibly GPL2 or GPL3 which would be correct), and cabal2nix or the haskell stuff in nixpkgs is giving a warning about it? You might be able to figure out where the warning is coming from by grepping through the Nixpkgs repo for something like license.*not found. 04:12:05
@wildwestrom:nitro.chatwildwestrom Sorry, I should've made it clear, I never got it working with stacklock2nix. I used haskell.nix instead. 07:34:18
@oak:universumi.fioak πŸ³οΈβ€πŸŒˆβ™₯️ changed their display name from oak πŸ«±β­•πŸ«² to oak.10:59:23
@oak:universumi.fioak πŸ³οΈβ€πŸŒˆβ™₯️ changed their display name from oak to oak πŸ³οΈβ€πŸŒˆβ™₯️.11:01:07
@keypusher:matrix.orgkeypusherHow do I include haddock output in my package build using flake.nix? Seems it's removed in the nix store path logged during build19:22:16
@maralorn:maralorn.demaralornI don’t think that should be the case.19:41:39
@maralorn:maralorn.demaralorn But there is a flag to a Haskell derivation which is called doHaddocks. 19:42:29
@maralorn:maralorn.demaralornPretty sure that’s documented in the nixpkgs manual if you wanna take a look.19:42:49
@maralorn:maralorn.demaralornOh, wait.19:44:03
@maralorn:maralorn.demaralornSorry19:44:06
@maralorn:maralorn.demaralorn There is a separate -doc output as result of the build. 19:44:30
@keypusher:matrix.orgkeypusherhere's the flake.nix for reference https://paste.tomsmeding.com/R55viFJM19:45:00
@maralorn:maralorn.demaralorn So if you build your package with .#foo then something like .#foo.doc should, I think, give you a store path with the docs. 19:45:28
@keypusher:matrix.orgkeypusherok.. ill try that19:46:07
@maralorn:maralorn.demaralornHuh, your flake seems to be pretty aware of that. πŸ˜„19:46:50

Show newer messages


Back to Room ListRoom Version: 6