When using ghc.withPackages, it fails and does not load packages.
The same command works on x86-64
Commands used:
nix-shell -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [ haskellPackages.sqlite-simple ])"
nix-shell -p "(ghc.withPackages.override { useLLVM = true; }) (p: [ p.sqlite-simple ])"
all outputs:
this derivation will be built:
/nix/store/vrg51n9bfldrcpb8v3a8b1n602w8hr72-ghc-9.6.6-with-packages.drv
these 10 paths will be fetched (0.76 MiB download, 10.45 MiB unpacked):
/nix/store/12ar9c86l427lg837gry413ma4gv3m60-die-hook
/nix/store/2c2jr3dbigh4wmaj7w36nwj9jf6m30rc-file-5.45
/nix/store/n447rc0mg6hg1y7l5lq0bsidwvwhqbvp-gnu-config-2024-01-01
/nix/store/56dkng4ym35pk4mcl3wkhccpv275a34c-gnumake-4.4.1
/nix/store/phirij6z95sn40yx8hgzv25prwpv1gkj-lndir-1.0.5
/nix/store/xrlkay5hhm7097k8d4kr4b8i9xig2dg4-make-shell-wrapper-hook
/nix/store/bkykjz2vxxhrq94qzsxwv8i4hypw9x0m-patchelf-0.15.0
/nix/store/73imbl5ryqj74ma8fs3f192lcya0qkig-stdenv-linux
/nix/store/w8p094rp5nd1ns0cgi5yl5gcz2qbcmap-stdenv-linux
/nix/store/i26cn1ff0hk7k5nncgjznq5bmvpgy4m7-update-autotools-gnu-config-scripts-hook
copying path '/nix/store/12ar9c86l427lg837gry413ma4gv3m60-die-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/n447rc0mg6hg1y7l5lq0bsidwvwhqbvp-gnu-config-2024-01-01' from 'https://cache.nixos.org'...
copying path '/nix/store/2c2jr3dbigh4wmaj7w36nwj9jf6m30rc-file-5.45' from 'https://cache.nixos.org'...
copying path '/nix/store/56dkng4ym35pk4mcl3wkhccpv275a34c-gnumake-4.4.1' from 'https://cache.nixos.org'...
copying path '/nix/store/phirij6z95sn40yx8hgzv25prwpv1gkj-lndir-1.0.5' from 'https://cache.nixos.org'...
copying path '/nix/store/bkykjz2vxxhrq94qzsxwv8i4hypw9x0m-patchelf-0.15.0' from 'https://cache.nixos.org'...
copying path '/nix/store/xrlkay5hhm7097k8d4kr4b8i9xig2dg4-make-shell-wrapper-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/i26cn1ff0hk7k5nncgjznq5bmvpgy4m7-update-autotools-gnu-config-scripts-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/73imbl5ryqj74ma8fs3f192lcya0qkig-stdenv-linux' from 'https://cache.nixos.org'...
copying path '/nix/store/w8p094rp5nd1ns0cgi5yl5gcz2qbcmap-stdenv-linux' from 'https://cache.nixos.org'...
building '/nix/store/vrg51n9bfldrcpb8v3a8b1n602w8hr72-ghc-9.6.6-with-packages.drv'...
/nix/store/0nj8rlyii2jkmxhz6mqyxqld9g0prwzg-attoparsec-0.14.4/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/0nj8rlyii2jkmxhz6mqyxqld9g0prwzg-attoparsec-0.14.4/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/jj0yybbjzq7spkrxixzp82zmfzj5m15r-blaze-builder-0.4.2.3/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/jj0yybbjzq7spkrxixzp82zmfzj5m15r-blaze-builder-0.4.2.3/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/6c1iyjs0g9qa1l0bbma9w9338wk0yfk1-blaze-textual-0.2.3.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/6c1iyjs0g9qa1l0bbma9w9338wk0yfk1-blaze-textual-0.2.3.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/xlqk3zqqr6n6rfsc46m48jdx4ibp2552-direct-sqlite-2.3.29/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/xlqk3zqqr6n6rfsc46m48jdx4ibp2552-direct-sqlite-2.3.29/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/i89cdjrkxccbl42q952wrvassr43l107-Only-0.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/i89cdjrkxccbl42q952wrvassr43l107-Only-0.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/51iin1v0xbp6v4izhn6j0lmddipyzqma-scientific-0.3.7.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/51iin1v0xbp6v4izhn6j0lmddipyzqma-scientific-0.3.7.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/yg8iixqh2l2lcrkl65956pg2dl1b7smn-vector-0.13.1.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/yg8iixqh2l2lcrkl65956pg2dl1b7smn-vector-0.13.1.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/84rayy78b65ygh21j9bd532hfkxsnq3w-hashable-1.4.4.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/84rayy78b65ygh21j9bd532hfkxsnq3w-hashable-1.4.4.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/6r1d6xz0wrl6qmf584076p9dyq91pgl7-integer-logarithms-1.0.3.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/6r1d6xz0wrl6qmf584076p9dyq91pgl7-integer-logarithms-1.0.3.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/vi6p35ff5y8c15qkblmdrf3y06d6gfyh-primitive-0.8.0.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/vi6p35ff5y8c15qkblmdrf3y06d6gfyh-primitive-0.8.0.0/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/n9ip7q0zjw35i9ry1rnq7zhi59jvr999-vector-stream-0.1.0.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/n9ip7q0zjw35i9ry1rnq7zhi59jvr999-vector-stream-0.1.0.1/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/9cqf4z5vy6m6ihyb76jc1mp469p6r478-os-string-2.0.6/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
/nix/store/9cqf4z5vy6m6ihyb76jc1mp469p6r478-os-string-2.0.6/nix-support:
propagated-build-inputs: Keeping existing link to /nix/store/ba577bgyap4bcgyphwlaq7b8jj36ricq-sqlite-simple-0.4.19.0/nix-support/propagated-build-inputs
Warning: haddock-interfaces: /nix/store/0nj8rlyii2jkmxhz6mqyxqld9g0prwzg-attoparsec-0.14.4/share/doc/aarch64-linux-ghc-9.6.6/attoparsec-0.14.4/html/attoparsec.haddock doesn't exist or isn't a file
Warning: haddock-html: /nix/store/0nj8rlyii2jkmxhz6mqyxqld9g0prwzg-attoparsec-0.14.4/share/doc/aarch64-linux-ghc-9.6.6/attoparsec-0.14.4/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /nix/store/0nj8rlyii2jkmxhz6mqyxqld9g0prwzg-attoparsec-0.14.4/share/doc/aarch64-linux-ghc-9.6.6/attoparsec-0.14.4/html/attoparsec.haddock doesn't exist or isn't a file
Warning: haddock-html: /nix/store/0nj8rlyii2jkmxhz6mqyxqld9g0prwzg-attoparsec-0.14.4/share/doc/aarch64-linux-ghc-9.6.6/attoparsec-0.14.4/html doesn't exist or isn't a directory
Warning: include-dirs: /nix/store/n7ddq7p8x2q9acmxhci3q2228957mzl7-ghc-9.6.6-with-packages/lib/ghc-9.6.6/lib/../lib/aarch64-linux-ghc-9.6.6/directory-1.3.8.5/include doesn't exist or isn't a directory
Steps to reproduce the behavior: (on aarch64)
-
nix-shell -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [ haskellPackages.sqlite-simple ])"
ornix-shell -p "(ghc.withPackages.override { useLLVM = true; }) (p: [ p.sqlite-simple ])"
runghc <file that uses the package>