Jonathan King

Results 21 comments of Jonathan King

I've also run into this (rules_haskell-0.15 and bazel 4.2.2) and removing the `BUILD.bazel` also "fixed" the issue. I am relying on a similar workaround (vendoring amazonka) for now.

Thanks for the context/suggestion @aherrmann, in my case running `bazel build @stackage//:amazonka-core --deleted_packages=@stackage//amazonka-core-2.0` now works 🎉 (while without the `deleted_packages` it fails). Having to set this flag though when calling...

In case it helps anyone searching, similarly for pandoc 3 the following is required: ``` components = { "pandoc": [ "lib", "lib:xml-light", ], }, components_dependencies = { "pandoc": """{"lib:pandoc": ["lib:xml-light"]}""",...

Unfortunately the GHC 9.6 releases with `enableShared = false`, which is set through `useArchiveFilesForTemplateHaskell = true`, are _still_ broken. I think this could be the same issue as https://github.com/NixOS/nixpkgs/issues/208959#issuecomment-1646098256? ```...

I've run `nix build --file survey/default.nix working` (x86-64 linux machine) and everything builds.

I intend to continue investigating this and will share thoughts here 📝 It's also very possible that I'm making a very silly mistake somewhere 😅

Commenting out https://github.com/nh2/static-haskell-nix/blob/88f1e2d57e3f4cd6d980eb3d8f99d5e60040ad54/survey/default.nix#L1594-L1596 I now get ``` nix-repl> pkgs = (import ./survey/default.nix { useArchiveFilesForTemplateHaskell = true; }) nix-repl> pkgs.haskellPackages.buildHaskellPackages.ghc «derivation /nix/store/pd3h7k2f9p9290dhfch2wnwkp9714xgk-ghc-musl-9.2.7.drv» nix-repl> pkgs.haskellPackages.ghc «derivation /nix/store/6yvclb4xwmkwg632nmm2mdcaw94vfj7k-ghc-musl-9.2.7.drv» ``` So maybe this override...

Unfortunately I'm pretty stumped on this 😔 For posterity, one approach to debugging I tried was: * Cloning a copy of nixpkgs (to `~/github/nixpkgs`) * Adding a breakpoint to [`mkDerivation`](https://github.com/NixOS/nixpkgs/blob/312ab59e8ade69e6083017bd9b98a2919f1fb86a/pkgs/development/haskell-modules/make-package-set.nix#L74)...

As always, I welcome feedback on * Whether `pkgsWithGhc` should be exposed/exist at all (should this be merged into the `archiveFilesOverlay`?) * Better names

> Wouldn't it make more sense to layer first the pkgsWithArchiveFiles, and then the static-enabled GHC overlay (as in, swap the order from your PR)? Yes, I agree; Would anyone...