agda: rework builder

This commit is contained in:
Alex Rice
2020-05-14 20:54:11 +01:00
parent 6cbaa256fa
commit d30e2468e0
9 changed files with 205 additions and 111 deletions
@@ -0,0 +1,26 @@
{ stdenv, mkDerivation, fetchFromGitHub, ghcWithPackages }:
mkDerivation rec {
pname = "standard-library";
version = "1.1";
src = fetchFromGitHub {
repo = "agda-stdlib";
owner = "agda";
rev = "v${version}";
sha256 = "190bxsy92ffmvwpmyyg3lxs91vyss2z25rqz1w79gkj56484cy64";
};
nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
preConfigure = ''
runhaskell GenerateEverything.hs
'';
meta = with stdenv.lib; {
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
description = "A standard library for use with the Agda compiler";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
maintainers = with maintainers; [ jwiegley mudri alexarice ];
};
}