| 18 May 2025 |
wildwestrom | Here's the full trace. https://bpa.st/QC7A | 11:40:43 |
sterni (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#L128 | 13:23:56 |
wildwestrom | Damn, alright. Guess I'll need a different approach. | 13:24:38 |
sterni (he/him) | As is documented in that file you can pass your own overrides. | 13:25:42 |
wildwestrom | 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 |
sterni (he/him) | it's documented here https://github.com/cdepillabout/stacklock2nix/blob/108f6ab6d0208e3842443bea26dfd72b37d82f28/nix/build-support/stacklock2nix/default.nix#L27-L31 | 13:41:21 |
wildwestrom | Ok, 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/GK4A | 14:42:39 |
wildwestrom | Goddamn, I fix one thing and another thing gets broken. | 16:50:03 |
wildwestrom | I think I got it! | 21:06:11 |
wildwestrom | * I think found one that works! | 21:06:26 |
wildwestrom | 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 | No idea how to deal with the warnings. | 01:38:52 |
wildwestrom | Nevermind: 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 | 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 | 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 | * 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 | Sorry, I should've made it clear, I never got it working with stacklock2nix. I used haskell.nix instead. | 07:34:18 |
| oak π³οΈβπβ₯οΈ changed their display name from oak π«±βπ«² to oak. | 10:59:23 |
| oak π³οΈβπβ₯οΈ changed their display name from oak to oak π³οΈβπβ₯οΈ. | 11:01:07 |
keypusher | How do I include haddock output in my package build using flake.nix? Seems it's removed in the nix store path logged during build | 19:22:16 |
maralorn | I donβt think that should be the case. | 19:41:39 |
maralorn | But there is a flag to a Haskell derivation which is called doHaddocks. | 19:42:29 |
maralorn | Pretty sure thatβs documented in the nixpkgs manual if you wanna take a look. | 19:42:49 |
maralorn | Oh, wait. | 19:44:03 |
maralorn | Sorry | 19:44:06 |
maralorn | There is a separate -doc output as result of the build. | 19:44:30 |
keypusher | here's the flake.nix for reference https://paste.tomsmeding.com/R55viFJM | 19:45:00 |
maralorn | 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 | ok.. ill try that | 19:46:07 |
maralorn | Huh, your flake seems to be pretty aware of that. π | 19:46:50 |