input-output-hk / input-output-hk/stack2nix

Runtime-dependency on cabal executable?

Open
#100 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Nix
Stars
100
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I got this:

```
Ensuring cabal version is >= 2 ...
stack2nix: ERROR: cabal version must be 2 or higher. Current version: 1.22.6.0
CallStack (from HasCallStack):
error, called at src/Stack2nix/Util.hs:47:49 in stack2nix-0.1.3.1-3EqQ1tT1vMJGpAYSWfmhUQ:Stack2nix.Util
```

I see it calls `cabal --version`. Why is that?

`stack2nix` already link in the `Cabal` library, so couldn't it use only functionality from that? Then it wouldn't care about whatever `cabal` is in path (or even require it to be installed).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.