Hamish Mackenzie

Results 61 issues of Hamish Mackenzie

While using `cabal-to-nix` to replace a package in an existing project @shlevy and I had an issue where we got an error similar to #1372. It turned out that we...

enhancement
preserved

Currently when a component depends on the library of another package (`build-depends:`), nix-tools adds the package itself to `depends` rather than the library. It would simplify haskell.nix if it instead...

To reproduce this issue use https://github.com/input-output-hk/haskell.nix/pull/963 and remove [the work around module from `test/cabal-sublib/default.nix`](https://github.com/input-output-hk/haskell.nix/blob/76e8a9bf9f3c8195ceae2bc549ed31da77e446b9/test/cabal-sublib/default.nix#L13-L19) To view the `plan.json` file: ``` jq . $(nix-build ./default.nix --argstr compiler-nix-name ghc8102 -A cabal-sublib.ifdInputs.plan-nix.json) |...

See https://github.com/haskell/cabal/commit/bf32602db5770a312fe632b997ff9b7c7e4d0329 and https://github.com/input-output-hk/haskell.nix/issues/1642 I think it is unreasonable for cabal to expect `pkg-config --libs --static` to work when only dynamic libraries may be installed on a system. **To Reproduce**...

type: bug
attention: pr-welcome
regression in 3.8
attention: needs-backport 3.12
re: pkg-config

Hydra error is `Output limit exceeded`. We suspect this is because the outputs of the derivation total more than 4GB. ``` $ du -sh $(nix-build -A pkgs-unstable.haskell-nix.compiler.ghc921.dwarf) $(nix-build -A pkgs-unstable.haskell-nix.compiler.ghc921.dwarf.doc)...

preserved

One way to reproduce enable the `cabal-22` test for ghcjs on darwin in `test/default.nix` and run: ``` nix-build release.nix -A R2003.ghc884.darwin.ghcjs.tests.cabal-22.run --show-trace ``` ``` unpacking sources unpacking source archive /nix/store/0fvszhwxzibkx1kwmlp8cndz8airff9n-project-test-unit-0.1.0.0-js-unknown-ghcjs-js-unknown-ghcjs...

preserved