I’ve been getting Haskell packages from Github with this pattern:
a-package =
cabal2nix "a-package" (prev.fetchgit {
url = "https://github.com/alice/a-package.git";
sha256 = "sha256-...";
rev = "...";
}) { };
This works fine, except there’s a package in a repository I’m trying to get with it’s cabal file in a subdirectory src
, instead of the usual root of the repository.
I’ve tried this:
a-package =
cabal2nix "a-package" (prev.fetchgit {
url = "https://github.com/alice/a-package.git";
sha256 = "sha256-...";
rev = "...";
} + "/src") { };
But this strangly results in the following error:
> cabal2nix: nix-prefetch-url: createProcess: posix_spawnp: does not exist (No such file or directory)
Any ideas?