I’m trying to compile a project using the ghc-wasm-meta
compiler, sadly, it doesn’t support Template Haskell and one of the main packages I’m importing is singletons-base
, which depends on a couple of TH libraries.
So I took the time of de-templating the whole project via a fork, and now I’m trying to override the package source using this flake
Nevertheless I’m getting the following error:
error:
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'haskell-template'
whose name attribute is located at /nix/store/1fzvh581hp63syzq2q10i6763b98ckbw-source/pkgs/stdenv/generic/make-derivation.nix:334:7
… while evaluating attribute 'nativeBuildInputs' of derivation 'haskell-template'
at /nix/store/1fzvh581hp63syzq2q10i6763b98ckbw-source/pkgs/stdenv/generic/make-derivation.nix:378:7:
377| depsBuildBuild = elemAt (elemAt dependencies 0) 0;
378| nativeBuildInputs = elemAt (elemAt dependencies 0) 1;
| ^
379| depsBuildTarget = elemAt (elemAt dependencies 0) 2;
… while evaluating definitions from `/nix/store/kr229gv03s66bifpbhyxjai4wyky79df-source/nix/modules/project/settings/all.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: builder for '/nix/store/p9jx16dpa1ypwl48x0m9gmgq9q62irkl-cabal2nix-singletons.drv' failed with exit code 1;
last 16 log lines:
> sourcing setup hook '/nix/store/yq6n8b0mnk0qxzbs3ajsjcp8ziwqylrl-patchelf-0.15.0/nix-support/setup-hook'
> sourcing setup hook '/nix/store/iks1pihvbilsh5sy8qvpd638k422w9i8-update-autotools-gnu-config-scripts-hook/nix-support/setup-hook'
> sourcing setup hook '/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh'
> sourcing setup hook '/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh'
> sourcing setup hook '/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh'
> sourcing setup hook '/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh'
> sourcing setup hook '/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh'
> sourcing setup hook '/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh'
> sourcing setup hook '/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh'
> sourcing setup hook '/nix/store/jivxp510zxakaaic7qkrb7v1dd2rdbw9-multiple-outputs.sh'
> sourcing setup hook '/nix/store/ilaf1w22bxi6jsi45alhmvvdgy4ly3zs-patch-shebangs.sh'
> sourcing setup hook '/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh'
> sourcing setup hook '/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh'
> sourcing setup hook '/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh'
> sourcing setup hook '/nix/store/gps9qrh99j7g02840wv5x78ykmz30byp-strip.sh'
> cabal2nix: user error (*** Found neither a .cabal file nor package.yaml. Exiting.)
does anybody have an idea on why is this happening?