nixpkgs/pkgs/development/libraries/agda/generic/default.nix

32 lines
776 B
Nix
Raw Normal View History

2020-08-10 10:02:57 +01:00
{ lib, mkDerivation, fetchFromGitHub, standard-library }:
mkDerivation rec {
pname = "generic";
version = "0.1.0.2";
2020-08-10 10:02:57 +01:00
src = fetchFromGitHub {
owner = "effectfully";
repo = "Generic";
2020-08-10 10:02:57 +01:00
rev = "v${version}";
sha256 = "05igsd2gaj6h9bkqwp8llhvn4qvc5gmi03x4fnz096ba8m6x8s3n";
2020-08-10 10:02:57 +01:00
};
buildInputs = [
standard-library
];
preBuild = ''
echo "module Everything where" > Everything.agda
2020-09-18 11:20:33 +01:00
find src -name '*.agda' | sed -e 's/src\///;s/\//./g;s/\.agda$//;s/^/import /' >> Everything.agda
2020-08-10 10:02:57 +01:00
'';
meta = with lib; {
description =
"A library for doing generic programming in Agda";
homepage = src.meta.homepage;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ alexarice turion ];
};
}