ocamlPackages.psmt2-frontend: 0.2 → 0.3.1

This commit is contained in:
Vincent Laporte 2021-02-17 18:03:28 +01:00 committed by Vincent Laporte
parent f9a4e6b1e2
commit 439eeda150

View file

@ -1,35 +1,27 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, ocaml, findlib, menhir }: { lib, fetchFromGitHub, buildDunePackage, menhir }:
if !lib.versionAtLeast ocaml.version "4.03" buildDunePackage rec {
then throw "psmt2-frontend is not available for OCaml ${ocaml.version}" version = "0.3.1";
else pname = "psmt2-frontend";
stdenv.mkDerivation rec {
version = "0.2";
name = "ocaml${ocaml.version}-psmt2-frontend-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Coquera"; owner = "ACoquereau";
repo = "psmt2-frontend"; repo = pname;
rev = version; rev = version;
sha256 = "097zmbrx4gp2gnrxdmsm9lkkp5450gwi0blpxqy3833m6k5brx3n"; sha256 = "038jrfsq09nhnzpjiishg4adk09w3aw1bpczgbj66lqqilkd6gci";
}; };
prefixKey = "-prefix "; useDune2 = true;
nativeBuildInputs = [ autoreconfHook ]; minimumOCamlVersion = "4.03";
buildInputs = [ ocaml findlib menhir ];
createFindlibDestdir = true; buildInputs = [ menhir ];
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
meta = { meta = {
description = "A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language"; description = "A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language";
license = lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = [ lib.maintainers.vbgl ]; maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage; inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
}; };
} }