!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

You have reached the beginning of time (for this room).


SenderMessageTime
14 Aug 2025
@maralorn:maralorn.demaralornYes17:09:10
@maralorn:maralorn.demaralornAh, oops.17:09:24
@artem.types:matrix.orgArtem --fast did fix it 19:41:32
@artem.types:matrix.orgArtemregenerate-hackage-packages.sh seems to reformat the whole hackage-packages.nix. Am I doing something wrong?19:53:28
@maralorn:maralorn.demaralornDepends on the diff?^^19:54:43
@maralorn:maralorn.demaralornPossibly you have the wrong nixfmt in scope? Not sure.19:55:10
@maralorn:maralorn.demaralornYeah, nixfmt seems to be picked up from your environment.19:56:35
@maralorn:maralorn.demaralornEasiest fix is probably loading loading the shell.nix.19:57:31
@artem.types:matrix.orgArtem maralorn: which shell.nix? 20:01:55
@artem.types:matrix.orgArtemoh, maybe the root of nixpkgs, let me try it20:03:08
@artem.types:matrix.orgArtemthat did the trick, thanks!20:14:24
@artem.types:matrix.orgArtem chreekat: what is "grandfathered depedndencies" exactly? MAINTAINERS.md doesn't explain (other than saying you move there packages that you no longer maintain) 20:24:18
15 Aug 2025
@b:chreekat.netchreekatI think it's unmaintained (from Stackage perspective) dependencies of actively maintained packages. At one time they were included implicitly, and at some point they were made explicit. I'm not confident about that, however.04:44:22
@artem.types:matrix.orgArtemmakes sense, thank you05:22:59
18 Aug 2025
@artem.types:matrix.orgArtem how good is the Haskell builder with custom setups? I'm getting a pretty basic error when a custom setup uses a function from another package, and that package is listed in the cabal file's custom-setup:setup-depends, but when I'm building it with Nix, I'm getting "module not found" on the import-line in Setup.hs for an import from that other package.
That's liquidhaskell, by the way. The import line is here: https://github.com/ucsd-progsys/liquidhaskell/blob/6baa675f6bb000d016f0c859d7f865263679dc43/Setup.hs#L3 and it comes from the liquidhaskell-boot package. I am building it on top of my branch from https://github.com/NixOS/nixpkgs/pull/433722: I just enabled liquidhaskell and liquidhaskell-boot on top of the packages that are enabled in that PR. This should be the entirety of the dependency tree of liquidhaskell...
17:25:51
@artem.types:matrix.orgArtem * how good is the Haskell builder with custom setups? I'm getting a pretty basic error when a custom setup uses a function from another package, and that package is listed in the cabal file's custom-setup:setup-depends, but when I'm building it with Nix, I'm getting "module not found" on the import-line in Setup.hs for an import from that other package.
That's liquidhaskell, by the way. The import line is here: https://github.com/ucsd-progsys/liquidhaskell/blob/6baa675f6bb000d016f0c859d7f865263679dc43/Setup.hs#L3 and it comes from the liquidhaskell-boot package. I am building it on top of my branch from https://github.com/NixOS/nixpkgs/pull/433722 (with nix-build -A haskellPackages.liquidhaskell): I just enabled liquidhaskell and liquidhaskell-boot on top of the packages that are enabled in that PR. This should be the entirety of the dependency tree of liquidhaskell...
17:26:48
@artem.types:matrix.orgArtem * how good is the Haskell builder with custom setups? I'm getting a pretty basic error when a custom setup uses a function from another package, and that package is listed in the cabal file's custom-setup:setup-depends, but when I'm building it with Nix, I'm getting "module not found" on the import-line in Setup.hs for an import from that other package.
That's liquidhaskell, by the way. The import line is here: https://github.com/ucsd-progsys/liquidhaskell/blob/6baa675f6bb000d016f0c859d7f865263679dc43/Setup.hs#L3 and it comes from the liquidhaskell-boot package. I am building it on top of my branch from https://github.com/NixOS/nixpkgs/pull/433722 (with nix-build -A haskellPackages.liquidhaskell): I just enabled liquidhaskell and liquidhaskell-boot on top of the packages that are enabled in that PR. This should be the entirety of the dependency tree of liquidhaskell...
17:26:55
@artem.types:matrix.orgArtem this issue (https://github.com/NixOS/nixpkgs/issues/16998) on non-Haskell setup dependencies implies that Haskell setup dependencies should work just fine. So, it's me who is at fault, clearly! 17:31:46

Show newer messages


Back to Room ListRoom Version: 6