!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

719 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
18 May 2025
@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
@maralorn:maralorn.demaralorn Although I didn’t know docs is a bespoke flake attribute. 19:47:15
@keypusher:matrix.orgkeypusherit might be faulty. I just discovered "myPackageWithDocs" does not have a doc attribute19:47:59
@maralorn:maralorn.demaralorn btw. you shouldn’t use overrideAttrs on a haskell packages. Rather use the pkgs.haskell.lib.overideCabal function. 19:48:46
@keypusher:matrix.orgkeypusherokok19:48:58
@keypusher:matrix.orgkeypusher doesn't that apply the settings to all of pkgs.haskell.lib ? 19:49:55
@maralorn:maralorn.demaralorn Uh, no. You have to think of it more like a function, less than a method. So you would use it like pkgs.haskell.lib.overrideCabal <yourPackage> (old: { <your override>}). 19:51:11
@maralorn:maralorn.demaralorn * Uh, no. You have to think of it more like a function, less than a method. So you would use it like yourChangedPackage = pkgs.haskell.lib.overrideCabal <yourPackage> (old: { <your override>}). 19:51:34
@maralorn:maralorn.demaralornYet, the both options you set are both on by default, so I don’t think you need the override at all.19:52:02
@keypusher:matrix.orgkeypusherSeems I cannon find the correct attribute to refer to the documentation of the package.19:55:02

Show newer messages


Back to Room ListRoom Version: 6