diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix b/nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix new file mode 100644 index 000000000000..4bd5de8bd48d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix @@ -0,0 +1,29 @@ +{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages }: + +mkDerivation rec { + pname = "standard-library"; + version = "1.5"; + + src = fetchFromGitHub { + repo = "agda-stdlib"; + owner = "agda"; + rev = "v${version}"; + sha256 = "16fcb7ssj6kj687a042afaa2gq48rc8abihpm14k684ncihb2k4w"; + }; + + nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ]; + preConfigure = '' + runhaskell GenerateEverything.hs + # We will only build/consider Everything.agda, in particular we don't want Everything*.agda + # do be copied to the store. + rm EverythingSafe.agda EverythingSafeGuardedness.agda EverythingSafeSizedTypes.agda + ''; + + meta = with lib; { + homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary"; + description = "A standard library for use with the Agda compiler"; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with maintainers; [ jwiegley mudri alexarice turion ]; + }; +} |