cabal2nix icon indicating copy to clipboard operation
cabal2nix copied to clipboard

Generate Nix build instructions from a Cabal file

Results 92 cabal2nix issues
Sort by recently updated
recently updated
newest added

### Before merging - [x] What happens to the haskell4nix readthedocs? - [x] distribution-nixpkgs - [x] language-nix - [x] hackage-db - [x] Document, subtreeing process and how to recover the...

What we want to add to `haskell-ci` is: `"--hlint","--hlint-job","9.0.2","--hlint-options","-XCPP", `. We'll also want to provide a sensible `hlint.yaml` which disables some of the stupider suggestions.

Consider the [servant-cassava.cabal file](https://github.com/haskell-servant/servant-cassava/blob/66617547851d38d48f5f1d1b786db1286bdafa9d/servant-cassava.cabal#L4): It has a Hackage `x-revision` field checked in the repository which, interestingly, was never applied on Hackage. `cabal2nix`, however, recognizes this and sets the `revision` and...

bug

By supplying an URL to e.g. an archive or git repository, `cabal2nix` can generate expressions using fetcher functions from nixpkgs. We have no regression tests for this, as it requires...

enhancement

I've recently learned that when you run `cabal2nix` in a directory named `foo`, the only Cabal file `cabal2nix` will look for is `foo.cabal`. If it's not there, and even if...

* The Haskell package `assert` conflicts with the reserved keyword in Nix. * The Haskell package `type` conflicts with the internal attribute of the same name used in Nix derivations....

bug

`cabal2nix` should support something similar to `haskell.lib.buildStackProject` for projects with a `cabal.project` file. I suspect this will essentially amount to a derivation with `{ configurePhase = "cabal new-configure"; buildPhase =...

enhancement

I added `pkgs.haskell.packages.ghc901.haskell-language-server` to the available packages in my Nix configuration, and get a build error (see below). Afterwards, I did some research and found that `haskell-language-server` is not yet...

bug
enhancement

I ran into this issue today, and found this: https://github.com/NixOS/cabal2nix/issues/423. The solution, as stated in that thread, was to run `cabal update`. Could that be a hint that's given along...

enhancement

Since 2.0, Cabal has a notion of [internal libraries](https://cabal.readthedocs.io/en/latest/cabal-package.html#sublibs) (which is any named library in the cabal file): > Cabal 2.0 and later support “internal libraries”, which are extra named...

enhancement