Hello,
I have a Flake using haskell.nix
: GitHub - input-output-hk/haskell.nix: Alternative Haskell Infrastructure for Nixpkgs
The devShell
is defined here: hackage-server/flake.nix at 8794c621fb8aa6d71de38115652a4f03f56b82bf · haskell/hackage-server · GitHub
I am having difficulty with the library gd
: NixOS Search
Its dependencies such as libjpeg
, libpng
, libtiff
, libavif
, etc. are specified: hackage-server/flake.nix at 8794c621fb8aa6d71de38115652a4f03f56b82bf · haskell/hackage-server · GitHub
In the devShell
, cabal build all --enable-tests
produces errors like:
...
/nix/store/r2b9k28c6aghczpqfvh71y9xavm7rr68-binutils-2.39/bin/ld:
/nix/store/sfmkdpd7kllp4zva989y74mwcm6bm14g-libavif-0.11.1/lib/libavif.so.15:
undefined reference to `kYvu2020Constants'
/nix/store/r2b9k28c6aghczpqfvh71y9xavm7rr68-binutils-2.39/bin/ld:
/nix/store/4zby3xg4dayz4vfd00b9cxz9rgyr4wkr-libtiff-4.5.0/lib/libtiff.so.6:
undefined reference to `lzma_stream_encoder@XZ_5.0'
collect2: error: ld returned 1 exit status
Furthermore, LD_LIBRARY_PATH
is specified:
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
Any ideas? Thank you