Hi. I'm having a sudden problem with callCabal2nix on a local package:
cabal2nix: nix-prefetch-url: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
It worked earlier today (and before) and just promptly stopped. Any ideas why could it be? I don't even know where to start looking.
The cabal2nix executable works just fine though.
I have experienced problems with files not found by cabal2nix if, for example, the source tree copied to the store was wrong (subdirectory, missing the cabal file). though that doesn't explain that nix-prefetch-url is in the error.
in any case, the store path printed in your first output is worth taking a look at, maybe it's empty
I have experienced problems with files not found by cabal2nix if, for example, the source tree copied to the store was wrong (subdirectory, missing the cabal file). though that doesn't explain that nix-prefetch-url is in the error.
in any case, the store path printed in your first output is worth taking a look at, maybe it's empty
The source file is legit. I should probably try to reinstall Nix altogether
Hi. I'm having a sudden problem with
callCabal2nix
on a local package:It worked earlier today (and before) and just promptly stopped. Any ideas why could it be? I don't even know where to start looking.
The cabal2nix executable works just fine though.
I would guess that
nix-prefetch-url
is somehow not in the$PATH
…maybe something broke in your env that's calling cabal2nix?otherwise running the command with
strace -f -eopenat <nix command>
might show what it's trying to runnix-prefetch-url
is in$PATH
. strace output showsWhich I'm not sure how to interpret...
curious. just to be safe: you did include the
-f
?Torsten Schmits said:
Yep
oh, maybe try
-eopen
instead of-eopenat
Torsten Schmits said:
you need to look further up, the target is a line with
open
that returns something likeENOENT
on the rhs of the=
!is your commandline something like
nix-shell --pure
?Torsten Schmits said:
I don't really see even a single
open
Torsten Schmits said:
It's just
nix-shell
.--pure
fails in the same way thoughOh, but with --openat I do see a crap ton of .so files missing
I have experienced problems with files not found by cabal2nix if, for example, the source tree copied to the store was wrong (subdirectory, missing the cabal file). though that doesn't explain that
nix-prefetch-url
is in the error.in any case, the store path printed in your first output is worth taking a look at, maybe it's empty
Cyril Valyavin said:
that's normal, it's trying out different locations to find a library. only if they aren't followed by a final success are interesting
with parallel subprocesses, it's possible that it's not the absolute last entry in the output, however
Torsten Schmits said:
The source file is legit. I should probably try to reinstall Nix altogether
Didn't work. Well that's weird.
OH. Case closed, the culprit is me, I called cabal2nix with a file name, not the containing directory!