haskell.nix
haskell.nix copied to clipboard
"LICENSE: copyFile: does not exist (No such file or directory)" (it exists but as a symlink)
I've been trying to compile master version of https://github.com/kowainik/co-log/tree/main/co-log-polysemy. In my cabal.project I have
-- https://input-output-hk.github.io/haskell.nix/tutorials/source-repository-hashes/#handling-git-repositories-in-projects
source-repository-package
type: git
location: https://github.com/kowainik/co-log.git
subdir: co-log-polysemy
tag: d2c7ad66af4e79c7a8f8d5e6c324ea3ff2739277
--sha256:1f5sjwkiiqc99n2mghg0i3qhh9d81wp76d2bk4jm4ls2chb069zn
Now the build chokes on a symlink file ("LICENSE"):
note: keeping build directory '/tmp/nix-build-co-log-polysemy-lib-co-log-polysemy-0.0.1.2.drv-0'
error: builder for '/nix/store/15y9id4flhsryxh4dg3pjg2w59xlhznb-co-log-polysemy-lib-co-log-polysemy-0.0.1.2.drv' failed with exit code 1;
last 10 log lines:
> --disable-profiling instead.
> Warning: The 'license-file' field refers to the file 'LICENSE' which does not
> exist.
> building
> Preprocessing library for co-log-polysemy-0.0.1.2..
> Building library for co-log-polysemy-0.0.1.2..
> [1 of 2] Compiling Colog.Polysemy.Effect
> [2 of 2] Compiling Colog.Polysemy
> installing
> LICENSE: copyFile: does not exist (No such file or directory)
For full logs, run 'nix log /nix/store/15y9id4flhsryxh4dg3pjg2w59xlhznb-co-log-polysemy-lib-co-log-polysemy-0.0.1.2.drv'.
any workaround ? or should I ask upstream to not use symlinks ?
I've looked at the build directory and the symlinks are present but because the directory only contains the subdir, the symlinks are dangling. Not sure if that's an issue to solve in the package or if there is any other workaround.
Same problem.
As a hacky workaround, I have fixed it by adding the linked file to the extra-source-files
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.