[Nix-dev] ghc-7.6.3 vs haskellPlatform collision

Sergey Mironov grrwlf at gmail.com
Fri Nov 8 10:36:14 CET 2013


I've applied your patch. Nixos rebuilds without errors or conflicts.
Unfortunately, I can't 'cabal install' one of my Haskell projects any
more. Here is what cabal says:

dev:[grwlf at greyblade:~/proj/cake3]$ rm -rf dist/
dev:[grwlf at greyblade:~/proj/cake3]$ cabal configure && cabal build &&
cabal install
Resolving dependencies...
Configuring cake3-0.1.0.0...
Building cake3-0.1.0.0...
Preprocessing library cake3-0.1.0.0...
[1 of 7] Compiling System.FilePath.Wrapper (
src/System/FilePath/Wrapper.hs, dist/build/System/FilePath/Wrapper.o )
[2 of 7] Compiling Development.Cake3.Types (
src/Development/Cake3/Types.hs, dist/build/Development/Cake3/Types.o )
[3 of 7] Compiling Development.Cake3.Monad (
src/Development/Cake3/Monad.hs, dist/build/Development/Cake3/Monad.o )
[4 of 7] Compiling Development.Cake3.Writer (
src/Development/Cake3/Writer.hs, dist/build/Development/Cake3/Writer.o
)
[5 of 7] Compiling Development.Cake3 ( src/Development/Cake3.hs,
dist/build/Development/Cake3.o )
[7 of 7] Compiling Development.Cake3.Utils.Find (
src/Development/Cake3/Utils/Find.hs,
dist/build/Development/Cake3/Utils/Find.o )
In-place registering cake3-0.1.0.0...
Preprocessing executable 'cake3' for cake3-0.1.0.0...
[1 of 2] Compiling Paths_cake3      (
dist/build/autogen/Paths_cake3.hs,
dist/build/cake3/cake3-tmp/Paths_cake3.o )
[2 of 2] Compiling Main             ( src/CakeScript.hs,
dist/build/cake3/cake3-tmp/Main.o )
Linking dist/build/cake3/cake3 ...
Resolving dependencies...
In order, the following will be installed:
cake3-0.1.0.0 (reinstall) changes: process-1.1.0.2 added
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring cake3-0.1.0.0...
Building cake3-0.1.0.0...
Preprocessing library cake3-0.1.0.0...
In-place registering cake3-0.1.0.0...
Preprocessing executable 'cake3' for cake3-0.1.0.0...
Installing library in /home/grwlf/.cabal/lib/cake3-0.1.0.0/ghc-7.6.3
Installing executable(s) in /home/grwlf/.cabal/bin
Registering cake3-0.1.0.0...
cabal: cake3-0.1.0.0: Warning: haddock-interfaces:
/home/grwlf/.cabal/share/doc/cake3-0.1.0.0/html/cake3.haddock doesn't exist or
isn't a file
cake3-0.1.0.0: Warning: haddock-html:
/home/grwlf/.cabal/share/doc/cake3-0.1.0.0/html doesn't exist or isn't a
directory
cake3-0.1.0.0: dependency "mtl-2.1.2-c30a4a0a7d1a23cc4865fe406853c0c7" doesn't
exist (use --force to override)
cake3-0.1.0.0: dependency "text-0.11.3.1-bb827479d2dccbe930ecac8b1677b9ca"
doesn't exist (use --force to override)
Failed to install cake3-0.1.0.0
cabal: Error: some packages failed to install:
cake3-0.1.0.0 failed during the final install step. The exception was:
ExitFailure 1

Haddock-html warnings probably may be ignored since 'ghc-pkg check'
showed them with old 'ghcWithPackagesOld' as well. Missing mtl and
text dependencies is what really happens after the patch was applied.

Note, the project I'm trying to build is located here:
https://github.com/grwlf/cake3/commits/stable


Regards,
Sergey


2013/11/7 Peter Simons <simons at cryp.to>:
> Hi Sergey,
>
>  > ghcWithPackagesOld works great.
>
> if you have the chance, could you please do me a favor and test whether
> ghcWithPackagesOld still works for you after applying this patch?
>
>   https://github.com/NixOS/nixpkgs/pull/1188.patch
>
> Best regards,
> Peter
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list