2021-04-05 15:23:46 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "standard-library";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "agda-stdlib";
|
|
|
|
owner = "agda";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-TjGvY3eqpF+DDwatT7A78flyPcTkcLHQ1xcg+MKgCoE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
|
|
|
|
preConfigure = ''
|
2024-01-02 11:29:13 +00:00
|
|
|
runhaskell GenerateEverything.hs --include-deprecated
|
2021-02-05 17:12:51 +00:00
|
|
|
# We will only build/consider Everything.agda, in particular we don't want Everything*.agda
|
|
|
|
# do be copied to the store.
|
2021-07-17 21:14:59 +00:00
|
|
|
rm EverythingSafe.agda
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) agda; };
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A standard library for use with the Agda compiler";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-05-15 21:57:56 +00:00
|
|
|
maintainers = with maintainers; [ jwiegley mudri alexarice turion ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-05-15 21:57:56 +00:00
|
|
|
}
|