I'm stupid - Nix

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

TheMatten

Note to myself - when you get

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

Torsten Schmits

yup that happens to me a lot

Torsten Schmits

but it's really bad UX on nix's part

TheMatten

I love it when I lose whole evening trying to find reason for such problem...

TheMatten

But yay, my cabal project is now :snowflake:

Rizary

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