diff options
author | Alex Rice <alexrice999@hotmail.co.uk> | 2020-08-10 10:02:57 +0100 |
---|---|---|
committer | Alex Rice <alexrice999@hotmail.co.uk> | 2020-08-10 14:56:23 +0100 |
commit | c63ece099885aa68d56db5faddb8e6d67b3275b1 (patch) | |
tree | 0c22c29822d145e84f92db603cf4616893f0584c /pkgs/development/libraries/agda | |
parent | fcb82c9181fb3922369b2bd4a2bbf6da83627b86 (diff) |
agdaPackages.generic: init at v0.1
Diffstat (limited to 'pkgs/development/libraries/agda')
-rw-r--r-- | pkgs/development/libraries/agda/generic/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/agda/generic/default.nix b/pkgs/development/libraries/agda/generic/default.nix new file mode 100644 index 0000000000000..1287e08bda1da --- /dev/null +++ b/pkgs/development/libraries/agda/generic/default.nix @@ -0,0 +1,31 @@ +{ lib, mkDerivation, fetchFromGitHub, standard-library }: + +mkDerivation rec { + pname = "generic"; + version = "0.1"; + + src = fetchFromGitHub { + repo = "Generic"; + owner = "effectfully"; + rev = "v${version}"; + sha256 = "121121rg3daaqp91845fbyws6g28hyj1ywmh12n54r3nicb35g5q"; + }; + + buildInputs = [ + standard-library + ]; + + preBuild = '' + echo "module Everything where" > Everything.agda + find src -name '*.agda' | sed -e 's/src\///;s/\//./g;s/\.agda$//;s/^/import /' >> Everything.agda + ''; + + 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 ]; + }; +} |