2013-08-21 09:10:44 +01:00
|
|
|
{ cabal, HUnit, mtl }:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "syb";
|
2014-06-10 18:20:14 +01:00
|
|
|
version = "0.4.2";
|
|
|
|
sha256 = "1gvyw2gbccip24wpp9xi6qgwvg4m5cijhzz1v51wvyamqv4p2b8l";
|
2013-08-21 09:10:44 +01:00
|
|
|
testDepends = [ HUnit mtl ];
|
haskell-syb-0.4.1: disable the test suite when compiling with GHC HEAD
The test suite fails in a seemingly harmless way:
### Failure in: All:0
expected: "(MyDataType Int,(DataType {tycon = \"MyDataType\", datarep = AlgRep [MyDataType]},(\"\",(\"MyDataType\",(\"\",\"MyDataType\")))))"
but got: "(MyDataType Int,(DataType {tycon = \"Datatype.MyDataType\", datarep = AlgRep [MyDataType]},(\"\",(\"MyDataType\",(\"Datatype\",\"MyDataType\")))))"
2014-05-05 22:08:13 +01:00
|
|
|
doCheck = self.stdenv.lib.versionOlder self.ghc.version "7.9";
|
2013-08-21 09:10:44 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.cs.uu.nl/wiki/GenericProgramming/SYB";
|
|
|
|
description = "Scrap Your Boilerplate";
|
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
|
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
|
|
|
};
|
|
|
|
})
|