haskell.nix
haskell.nix copied to clipboard
c2hs not found
I'm not sure if this is actually a haskell.nix issue, but it does not happen with cabal new-build
. It is likely to be related to the way gtk2hs-buildtools
works.
~/t$ git clone https://github.com/gtk2hs/svgcairo.git
Cloning into 'svgcairo'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 21923 (delta 0), reused 3 (delta 0), pack-reused 21917
Receiving objects: 100% (21923/21923), 54.50 MiB | 3.21 MiB/s, done.
Resolving deltas: 100% (14093/14093), done.
~/t$ cd svgcairo
~/t/svgcairo$ nix-build -A svgcairo.components.library
trace: Using latest index state!
trace: Using index-state: 2019-08-25T00:00:00Z
trace: Using latest index state!
trace: Using index-state: 2019-08-25T00:00:00Z
trace: Using latest index state!
trace: Using index-state: 2019-08-25T00:00:00Z
trace: Using latest index state!
trace: Using index-state: 2019-08-25T00:00:00Z
these derivations will be built:
/nix/store/kjx4pdrgv1xd4yxfsvnwmh9hqkhi9i41-svgcairo-0.13.2.0-lib-svgcairo.drv
building '/nix/store/kjx4pdrgv1xd4yxfsvnwmh9hqkhi9i41-svgcairo-0.13.2.0-lib-svgcairo.drv'...
unpacking sources
unpacking source archive /nix/store/xd7pw21p861ibfp4y5lpylhpskjgarwn-svgcairo
source root is svgcairo
patching sources
configuring
Configure flags:
--prefix=/nix/store/saaiwgmpc8b178i4iq2i9wxvnb83hllr-svgcairo-0.13.2.0-lib-svgcairo lib:svgcairo --package-db=clear --package-db=/nix/store/1c097100ls5vdh7a4k9cpdx6a5dmxx62-svgcairo-0.13.2.0-lib-svgcairo-config/package.conf.d --exact-configuration --dependency=mtl=mtl-2.2.2-DPcvGa47JlhLWatXOCoVpV --dependency=text=text-1.2.3.1-GCSbsQArgWY8ErCWIXJbi2 --dependency=glib=glib-0.13.7.0-JIYxQCkkw1zFomaFNUoYCf --dependency=cairo=cairo-0.13.6.0-GBSjOYpiR1xC16N5JcF3g7 --dependency=rts=rts --dependency=ghc-heap=ghc-heap-8.6.5 --dependency=ghc-prim=ghc-prim-0.5.3 --dependency=integer-gmp=integer-gmp-1.0.2.0 --dependency=base=base-4.12.0.0 --dependency=deepseq=deepseq-1.4.4.0 --dependency=array=array-0.5.3.0 --dependency=ghc-boot-th=ghc-boot-th-8.6.5 --dependency=pretty=pretty-1.1.3.6 --dependency=template-haskell=template-haskell-2.14.0.0 --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ld=ld --with-ar=ar --with-strip=strip --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-executable-profiling --docdir=/nix/store/n2iii127b8z8gpmr5b9zsmcbi4k9i4wy-svgcairo-0.13.2.0-lib-svgcairo-doc/share/doc/svgcairo
Configuring library for svgcairo-0.13.2.0..
Warning: The flag --disable-executable-profiling is deprecated. Please use
--disable-profiling instead.
building
Preprocessing library for svgcairo-0.13.2.0..
Setup: The program 'c2hs' version >=0.15 is required but it could not be
found.
builder for '/nix/store/kjx4pdrgv1xd4yxfsvnwmh9hqkhi9i41-svgcairo-0.13.2.0-lib-svgcairo.drv' failed with exit code 1
error: build of '/nix/store/kjx4pdrgv1xd4yxfsvnwmh9hqkhi9i41-svgcairo-0.13.2.0-lib-svgcairo.drv' failed
This seems to be the same as #214? Does adding c2hs
as an extra dependency help?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.