2014-05-06 02:51:05 +02:00
|
|
|
{ cabal, fetchurl, filemanip, Agda }:
|
2014-05-03 02:15:38 +02:00
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "Agda-stdlib";
|
|
|
|
version = "0.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.cse.chalmers.se/~nad/software/lib-0.7.tar.gz";
|
|
|
|
sha256 = "1ynjgqk8hhnm6rbngy8fjsrd6i4phj2hlan9bk435bbywbl366k3";
|
|
|
|
};
|
|
|
|
|
2014-05-06 02:51:05 +02:00
|
|
|
buildDepends = [ filemanip Agda ];
|
|
|
|
|
2014-05-03 02:15:38 +02:00
|
|
|
preConfigure = "cd ffi";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share
|
2014-05-06 02:51:05 +02:00
|
|
|
cd ..
|
|
|
|
runhaskell GenerateEverything
|
|
|
|
agda -i . -i src Everything.agda
|
|
|
|
cp -pR src $out/share/agda
|
2014-05-03 02:15:38 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
|
|
|
|
description = "A standard library for use with the Agda compiler.";
|
|
|
|
license = "unknown";
|
|
|
|
platforms = self.ghc.meta.platforms;
|
|
|
|
maintainers = [ self.stdenv.lib.maintainers.jwiegley ];
|
|
|
|
};
|
|
|
|
})
|