haskell-reactive-banana-wx: re-generated expression with the latest version of Cabal2Nix
The package won't compile when 'buildExamples' is enabled. First of all, it depends on an ancient version of the 'executable-path' library. That problem can be remedied by adding patchPhase = '' sed -i -e 's|executable-path == 0.0.\*|executable-path|' reactive-banana-wx.cabal ''; ..., but even then it won't build because the Cabal file doesn't declare all dependencies properly. Both GHC 7.0.4 and 7.4.1 fail complaining about the absence of Prelude. svn path=/nixpkgs/trunk/; revision=34328
This commit is contained in:
parent
678c30c050
commit
b89f433951
|
@ -1,22 +1,18 @@
|
||||||
{ cabal, cabalMacosx, reactiveBanana, wx, wxcore, buildExamples ? false, executablePath ? null}:
|
{ cabal, cabalMacosx, reactiveBanana, wx, wxcore }:
|
||||||
|
|
||||||
assert buildExamples -> executablePath != null;
|
cabal.mkDerivation (self: {
|
||||||
|
|
||||||
cabal.mkDerivation (self:
|
|
||||||
let lib = self.stdenv.lib;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
pname = "reactive-banana-wx";
|
pname = "reactive-banana-wx";
|
||||||
version = "0.6.0.0";
|
version = "0.6.0.0";
|
||||||
sha256 = "1pxcymh6xpmbkbc8i2hvjbki9s81mx69wrp8nl1i0y4pppzi8ihp";
|
sha256 = "1pxcymh6xpmbkbc8i2hvjbki9s81mx69wrp8nl1i0y4pppzi8ihp";
|
||||||
isLibrary = true;
|
isLibrary = true;
|
||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
buildDepends = [ cabalMacosx reactiveBanana wx wxcore ] ++ lib.optional buildExamples executablePath;
|
buildDepends = [ cabalMacosx reactiveBanana wx wxcore ];
|
||||||
configureFlags = lib.optionalString buildExamples "-fbuildExamples";
|
configureFlags = "-f-buildExamples";
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://haskell.org/haskellwiki/Reactive-banana";
|
homepage = "http://haskell.org/haskellwiki/Reactive-banana";
|
||||||
description = "Examples for the reactive-banana library, using wxHaskell";
|
description = "Examples for the reactive-banana library, using wxHaskell";
|
||||||
license = lib.licenses.bsd3;
|
license = self.stdenv.lib.licenses.bsd3;
|
||||||
platforms = self.ghc.meta.platforms;
|
platforms = self.ghc.meta.platforms;
|
||||||
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue