2021-03-30 05:54:02 -07:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages, nixosTests }:
|
2014-05-02 17:15:38 -07:00
|
|
|
|
2019-12-29 04:14:16 -08:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "standard-library";
|
2021-04-23 09:06:31 -07:00
|
|
|
version = "1.6";
|
2014-05-02 17:15:38 -07:00
|
|
|
|
2016-06-07 02:52:55 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "agda-stdlib";
|
|
|
|
owner = "agda";
|
|
|
|
rev = "v${version}";
|
2021-04-23 09:06:31 -07:00
|
|
|
sha256 = "1smvnid7r1mc4lp34pfrbzgzrcl0gmw0dlkga8z0r3g2zhj98lz1";
|
2014-05-02 17:15:38 -07:00
|
|
|
};
|
|
|
|
|
2015-04-04 18:49:07 -07:00
|
|
|
nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
|
2014-08-31 17:31:17 -07:00
|
|
|
preConfigure = ''
|
2014-09-11 12:17:45 -07:00
|
|
|
runhaskell GenerateEverything.hs
|
2021-01-22 06:16:53 -08:00
|
|
|
# We will only build/consider Everything.agda, in particular we don't want Everything*.agda
|
|
|
|
# do be copied to the store.
|
|
|
|
rm EverythingSafe.agda EverythingSafeGuardedness.agda EverythingSafeSizedTypes.agda
|
2014-05-02 17:15:38 -07:00
|
|
|
'';
|
|
|
|
|
2021-03-30 05:54:02 -07:00
|
|
|
passthru.tests = { inherit (nixosTests) agda; };
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2020-04-24 07:52:46 -07:00
|
|
|
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
|
2014-11-11 05:20:43 -08:00
|
|
|
description = "A standard library for use with the Agda compiler";
|
2021-01-21 09:00:13 -08:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-05-14 12:50:00 -07:00
|
|
|
maintainers = with maintainers; [ jwiegley mudri alexarice turion ];
|
2014-05-02 17:15:38 -07:00
|
|
|
};
|
2019-12-29 04:14:16 -08:00
|
|
|
}
|