Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agda2hs locate doesn't work with the nix build #384

Open
liesnikov opened this issue Dec 18, 2024 · 0 comments
Open

agda2hs locate doesn't work with the nix build #384

liesnikov opened this issue Dec 18, 2024 · 0 comments

Comments

@liesnikov
Copy link
Contributor

Steps to reproduce:

agda2hs $ nix build
agda2hs $ ./result/bin/agda2hs locate
/home/user/agda2hs/locate:1,1-1
Cannot read file /home/user/agda2hs/locate
Error: /home/user/agda2hs/locate: openBinaryFile: does not exist (No such file or directory)

This is due to the fact that agda2hs is wrapped in the process to pass in some flags, see

agda2hs/agda2hs.nix

Lines 20 to 23 in 84c0c36

makeWrapper ${agda2hs}/bin/agda2hs $out/bin/agda2hs \
--add-flags "--with-compiler=${ghc}/bin/ghc" \
--add-flags "--library-file=${library-file}" \
--add-flags "--local-interfaces"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant