2017-08-04 06:46:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocamlPackages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "obelisk-${version}";
|
2017-08-27 07:56:35 +01:00
|
|
|
version = "0.3.0";
|
2017-08-04 06:46:07 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-08-27 07:56:35 +01:00
|
|
|
owner = "lelio-brun";
|
|
|
|
repo = "obelisk";
|
2017-08-04 06:46:07 +01:00
|
|
|
rev = "v${version}";
|
2017-08-27 09:19:40 +01:00
|
|
|
sha256 = "12gldzi1mp15vwkk6llz2ignpc8ndqlycm88njb4k7r9hpv59m97";
|
2017-08-04 06:46:07 +01: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;
|
|
|
|
};
|
|
|
|
}
|