lol

coqPackages.metalib: New expression

+54
+53
pkgs/development/coq-modules/metalib/default.nix
··· 1 + { stdenv, fetchgit, coq, ocamlPackages, haskellPackages, which, ott 2 + }: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "metalib-${coq.coq-version}-${version}"; 6 + version = "20170713"; 7 + 8 + src = fetchgit { 9 + url = https://github.com/plclub/metalib.git; 10 + rev = "44e40aa082452dd333fc1ca2d2cc55311519bd52"; 11 + sha256 = "1pra0nvx69q8d4bvpcvh9ngic1cy6z1chi03x56nisfqnc61b6y9"; 12 + }; 13 + 14 + # The 'lngen' command-line utility is built from Haskell sources 15 + lngen = with haskellPackages; mkDerivation { 16 + pname = "lngen"; 17 + version = "0.0.1"; 18 + src = fetchgit { 19 + url = https://github.com/plclub/lngen; 20 + rev = "ea73ad315de33afd25f87ca738c71f358f1cd51c"; 21 + sha256 = "1a0sj8n3lmsl1wlnqfy176k9lb9s8rl422bvg3ihl2i70ql8wisd"; 22 + }; 23 + isLibrary = true; 24 + isExecutable = true; 25 + libraryHaskellDepends = [ base containers mtl parsec syb ]; 26 + executableHaskellDepends = [ base ]; 27 + homepage = https://github.com/plclub/lngen; 28 + description = "Tool for generating Locally Nameless definitions and proofs in Coq, working together with Ott"; 29 + license = stdenv.lib.licenses.mit; 30 + }; 31 + 32 + buildInputs = [ coq.ocaml coq.camlp5 which coq lngen ott ] 33 + ++ (with ocamlPackages; [ findlib ]); 34 + propagatedBuildInputs = [ coq ]; 35 + 36 + enableParallelBuilding = true; 37 + 38 + buildPhase = '' 39 + (cd Metalib; make) 40 + ''; 41 + 42 + installPhase = '' 43 + (cd Metalib; make -f CoqSrc.mk DSTROOT=/ COQLIB=$out/lib/coq/${coq.coq-version}/ install) 44 + ''; 45 + 46 + meta = with stdenv.lib; { 47 + homepage = https://github.com/plclub/metalib; 48 + license = licenses.mit; 49 + maintainers = [ maintainers.jwiegley ]; 50 + platforms = coq.meta.platforms; 51 + }; 52 + 53 + }
+1
pkgs/top-level/all-packages.nix
··· 18714 18714 HoTT = callPackage ../development/coq-modules/HoTT {}; 18715 18715 interval = callPackage ../development/coq-modules/interval {}; 18716 18716 mathcomp = callPackage ../development/coq-modules/mathcomp { }; 18717 + metalib = callPackage ../development/coq-modules/metalib { }; 18717 18718 paco = callPackage ../development/coq-modules/paco {}; 18718 18719 ssreflect = callPackage ../development/coq-modules/ssreflect { }; 18719 18720 QuickChick = callPackage ../development/coq-modules/QuickChick {};