Fix build for openai-hs#223590
Conversation
cdepillabout
left a comment
There was a problem hiding this comment.
Thanks for taking a look at this!
Can you update the PR title and commit message at adhere to https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#submitting-changes?
Other than that, this LGTM.
@ofborg build haskellPackages.openai-hs
There was a problem hiding this comment.
| hydraPlatforms = lib.platforms.none; |
You'll also need to remove this line, otherwise Hydra won't build the package.
You can also run maintainers/scripts/haskell/regenerate-hackage-packages.sh instead of modifying this file yourself.
|
Oh, maybe ofborg doesn't work in a review comment thing. Let's try again: @ofborg build haskellPackages.openai-hs |
a5b077b to
58aec3d
Compare
|
hmm, i tried that but it fails with: $ maintainers/scripts/haskell/regenerate-hackage-packages.sh
maintainers/scripts/haskell/regenerate-hackage-packages.sh: line 24: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory
Obtaining Hackage data
Generating compiler configuration
Starting hackage2nix to regenerate pkgs/development/haskell-modules/hackage-packages.nix ...
hackage2nix: constraint doctest >=0.18 && <0.19 cannot be resolved in Hackage
This could be due the package being missing in the hackage directory
or the file system not being case sensitive.
CallStack (from HasCallStack):
error, called at hackage2nix/Main.hs:203:34 in main:Main
hackage2nix: thread blocked indefinitely in an MVar operation… so i went ahead and made the modification manually |
Ah, sorry about that. Normally you can use Thanks! |
|
Oh, I should have also suggested that you add yourself to the |
|
openai-hs currently still has a build error on x86 linux: https://hydra.nixos.org/log/x80hzbi4b3zfwz636mvs222h00gi4vzh-openai-hs-0.2.2.0.drv I will refrain from marking it broken again for this merge because it apparently works at least on darwin. |
|
You can work around that by disabling profiling (which is quite a headache though): https://gitlab.haskell.org/ghc/ghc/-/issues/21291 |
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)