2020-08-20 17:08:02 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, standard-library }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "generic";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "0.1.0.2";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "effectfully";
|
2021-02-05 17:12:51 +00:00
|
|
|
repo = "Generic";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "05igsd2gaj6h9bkqwp8llhvn4qvc5gmi03x4fnz096ba8m6x8s3n";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
standard-library
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
echo "module Everything where" > Everything.agda
|
2020-10-27 00:29:36 +00:00
|
|
|
find src -name '*.agda' | sed -e 's/src\///;s/\//./g;s/\.agda$//;s/^/import /' >> Everything.agda
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-08-05 21:33:18 +00:00
|
|
|
# Remove if a version compatible with agda 2.6.2 is made
|
|
|
|
broken = true;
|
2020-08-20 17:08:02 +00:00
|
|
|
description =
|
|
|
|
"A library for doing generic programming in Agda";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ alexarice turion ];
|
|
|
|
};
|
|
|
|
}
|