2021-01-25 09:26:54 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages }:
|
2014-05-02 19:15:38 -05:00
|
|
|
|
2019-12-29 12:14:16 +00:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "standard-library";
|
2021-01-26 04:56:35 +01:00
|
|
|
version = "1.5";
|
2014-05-02 19:15:38 -05:00
|
|
|
|
2016-06-07 10:52:55 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "agda-stdlib";
|
|
|
|
owner = "agda";
|
|
|
|
rev = "v${version}";
|
2021-01-26 04:56:35 +01:00
|
|
|
sha256 = "16fcb7ssj6kj687a042afaa2gq48rc8abihpm14k684ncihb2k4w";
|
2014-05-02 19:15:38 -05:00
|
|
|
};
|
|
|
|
|
2015-04-05 04:49:07 +03:00
|
|
|
nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
|
2014-09-01 01:31:17 +01:00
|
|
|
preConfigure = ''
|
2014-09-11 20:17:45 +01:00
|
|
|
runhaskell GenerateEverything.hs
|
2021-01-22 15:16:53 +01: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 19:15:38 -05:00
|
|
|
'';
|
|
|
|
|
2021-01-22 00:00:13 +07:00
|
|
|
meta = with lib; {
|
2020-04-24 16:52:46 +02:00
|
|
|
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A standard library for use with the Agda compiler";
|
2021-01-22 00:00:13 +07:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-05-14 20:50:00 +01:00
|
|
|
maintainers = with maintainers; [ jwiegley mudri alexarice turion ];
|
2014-05-02 19:15:38 -05:00
|
|
|
};
|
2019-12-29 12:14:16 +00:00
|
|
|
}
|