2013-08-21 09:10:44 +01:00
|
|
|
{ cabal, HUnit, mtl }:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "syb";
|
|
|
|
version = "0.4.1";
|
|
|
|
sha256 = "1lkh4rrqdzvb8kyry07x2z88v478hrw5cp8wmhjgpg0ck8ywncma";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
})
|