Closed stites closed 2 weeks ago
I'm not a Nix user so I'm afraid I'm not really able to provide any help here.
Hmm, I'm unable to reproduce this on darwin. I'll see if I can reproduce it on a linux VM.
Does agda itself have the same issue?
You can also try compiling it with agda2hs Foo.agda -o . -v import.iface:100
to get some debug info on the importing part.
Nope, I don't have any trouble if I build it on a linux machine either. See logs here.
Maybe something changed since you tried it? Can you include your lockfile?
I used nix build --eval-store auto --store ssh-ng://eu.nixbuild.net .#packages.x86_64-linux.foo-hs -L --builders-use-substitutes
to buil the above result on nixbuild.net.
I'll close this for now! Please reopen it if it is still an issue for you.
I am expecting that agda2hs will not recompile the interface files, but it looks like this is not the case for the binary on my system. Is this expected behavior? If it is, can someone help me get a nix derivation that can also load the standard-library?
First, I needed to ensure standard-library is compiled with `--local-interfaces` (which is different behavior compared to 1.7.x). See below:
I can see that the library files are correctly loaded in the `nix develop` shell:Now if I try to compile a trivial module, I get a permissions error as
agda2hs
attempts to compileData/Unit/Base.agdai
in the/nix/store
:However, this interface file does not need to be recompiled: