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