builder for '/nix/store/0x2h0h228wd20diqxw273n4a7q9ni25c-cabal2nix-foo.drv' failed with exit code 1; last 2 log lines:
installing
cabal2nix: nix-prefetch-url: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
error: build of '/nix/store/0x2h0h228wd20diqxw273n4a7q9ni25c-cabal2nix-foo.drv' failed
(use '--show-trace' to show detailed location information)
from nix build, make sure your project is actually named the same way as argument to callCabal2nix
and you need to make sure you put cabal-version: 2.2 or 2.0 is fine. I stuck for 3 days, just to figure out I put 3.0 and suddenly callCabal2Nix doesn't work
Note to myself - when you get
from
nix build
, make sure your project is actually named the same way as argument tocallCabal2nix
yup that happens to me a lot
but it's really bad UX on nix's part
I love it when I lose whole evening trying to find reason for such problem...
But yay, my cabal project is now :snowflake:
and you need to make sure you put
cabal-version: 2.2
or2.0
is fine. I stuck for 3 days, just to figure out I put3.0
and suddenlycallCabal2Nix
doesn't work