2017-08-04 07:46:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocamlPackages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "obelisk";
|
2019-03-04 17:00:29 +01:00
|
|
|
version = "0.4.0";
|
2017-08-04 07:46:07 +02:00
|
|
|
src = fetchFromGitHub {
|
2017-08-27 08:56:35 +02:00
|
|
|
owner = "lelio-brun";
|
|
|
|
repo = "obelisk";
|
2017-08-04 07:46:07 +02:00
|
|
|
rev = "v${version}";
|
2019-03-04 17:00:29 +01:00
|
|
|
sha256 = "0rw85knbwqj2rys1hh5qy8sfdqb4mb1wsriy38n7zcpbwim47vb8";
|
2017-08-04 07:46:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with ocamlPackages; [ ocaml findlib ocamlbuild menhir ];
|
|
|
|
|
|
|
|
installFlags = [ "BINDIR=$(out)/bin" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A simple tool which produces pretty-printed output from a Menhir parser file (.mly)";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|