| 11 Dec 2025 |
andromeda | I used cabal2nix to get a derivation and it builds with callPackage but I want to run a pre configure hook. How ought I go about doing that? | 15:53:25 |
andromeda | found it | 16:33:16 |
andromeda | preBuild | 16:33:24 |
andromeda | yesss it builds, finding the wayland headers and generating the code and everything, with both nix build on a Nix system and cabal build in a Kubuntu VM (after imperatively installing deps, ofc) | 16:38:12 |
andromeda | however, cabal build fails when in a development shell on nix - a loss I'm willing to live with for now. | 16:52:48 |
andromeda | My library builds, finding Wayland on Nix and non-Nix build systems! If anyone wants to take a peek: https://git.mtgmonkey.net/Andromeda/hs-rgfw | 17:21:31 |
andromeda | too bad it can't do much atm | 17:21:52 |
andromeda | I would be so content for wayland to stop being a pain in the ass | 21:06:38 |
andromeda | like so content | 21:06:43 |
alexfmpe | iopq: https://github.com/commercialhaskell/stack/issues/6824 | 21:14:02 |
andromeda | I need to link the wayland headers at build time so the header library stops freaking out about not seeing things but at the same time dynamic linking has problems on nix :( | 21:30:52 |
andromeda | I'll just not do wayland fn, it's beyond my ability | 21:31:11 |
| 12 Dec 2025 |
iopq | yep that's the one | 06:06:19 |
iopq | https://github.com/jtt9340/aoc2025/commit/e5fdca266f62c6ac0145f17f1ba60802dfaf1698 is the solution | 08:42:37 |
alexfmpe | been getting this sort of thing lately
WARNING: /nix/store/5sfpjqy5rbipa3mdgiwal8k7zqfq5jxh-ghc-9.6.7/lib/ghc-9.6.7/bin/./ghc-9.6.7 is loading libcrypto in an unsafe way when building inside a shell like
nix-shell -p cabal-install ghcid haskell-language-server ghc openssl zlib pkg-config anyone's seen this? (on unstable) | 16:37:09 |
alexfmpe | * been getting this sort of thing lately
WARNING: /nix/store/5sfpjqy5rbipa3mdgiwal8k7zqfq5jxh-ghc-9.6.7/lib/ghc-9.6.7/bin/./ghc-9.6.7 is loading libcrypto in an unsafe way when building inside a shell like
nix-shell -p cabal-install ghcid haskell-language-server haskell.packages.ghc96.ghc openssl zlib pkg-config anyone's seen this? (on unstable) | 16:37:40 |
alexfmpe | I see this in .cabal
extra-libraries: crypto | 16:38:37 |
emily | I bet related to that dlopen change, maybe. | 16:39:06 |
emily | some discussion https://github.com/cl-plus-ssl/cl-plus-ssl/issues/114 | 16:39:17 |
emily | I assume this is macOS. | 16:39:20 |
alexfmpe | oops yeah aarch64-darwin | 16:40:51 |
alexfmpe | m1 specifically | 16:40:58 |
alexfmpe | hmm so the issue is likely to be from loading unversioned libcrypto? | 16:53:02 |
emily | my guess is that it's something related to https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12264 / https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14290 / blah | 16:54:06 |
emily | it might still be loading libcrypto wrong (we'd want that to be an absolute path for Nix presumably?) | 16:54:20 |
emily | but I'd guess this stuff is what exposed it | 16:54:28 |
alexfmpe | I'm getting this on ghc 9.6 though | 16:58:02 |
emily | ah. then I have no idea. git bisect --first-parent? :) | 16:58:53 |
alexfmpe | I mean, 9.8 too, just meant it seems to predate those merge request | 16:58:56 |
emily | right | 17:00:41 |