2014-09-01 02:31:17 +02:00
|
|
|
{ stdenv, agda, fetchurl, ghcWithPackages }:
|
2014-05-03 02:15:38 +02:00
|
|
|
|
2014-09-01 02:31:17 +02:00
|
|
|
let
|
|
|
|
ghc = ghcWithPackages (s: [ s.filemanip ]);
|
|
|
|
in
|
|
|
|
agda.mkDerivation (self: rec {
|
|
|
|
name = "Agda-stdlib";
|
2014-08-31 20:26:05 +02:00
|
|
|
version = "0.8.1";
|
2014-05-03 02:15:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-06-17 08:09:04 +02:00
|
|
|
url = "https://github.com/agda/agda-stdlib/archive/v${version}.tar.gz";
|
2014-08-31 20:26:05 +02:00
|
|
|
sha256 = "0ij4rg4lk0pq01ing285gbmnn23dcf2rhihdcs8bbdpjg52vl4gf";
|
2014-05-03 02:15:38 +02:00
|
|
|
};
|
|
|
|
|
2014-09-01 02:31:17 +02:00
|
|
|
preConfigure = ''
|
|
|
|
${ghc}/bin/runhaskell GenerateEverything.hs
|
2014-05-03 02:15:38 +02:00
|
|
|
'';
|
|
|
|
|
2014-09-01 02:31:17 +02:00
|
|
|
topSourceDirectories = [ "src" ];
|
|
|
|
|
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";
|
2014-09-01 02:31:17 +02:00
|
|
|
maintainers = with stdenv.lib.maintaianers; [ jwiegley ];
|
2014-05-03 02:15:38 +02:00
|
|
|
};
|
|
|
|
})
|