nixpkgs/pkgs/development/tools/ocaml/obelisk/default.nix
Ulrik Strid a13cdfe520 ocamlPackages tree-wide: Move buildInputs that should be nativeBuildInputs
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild.
This makes some closures significantly smaller and makes cross compilation easier
2022-02-24 14:39:27 +01:00

26 lines
674 B
Nix

{ lib, fetchFromGitHub, ocamlPackages, menhir }:
ocamlPackages.buildDunePackage rec {
pname = "obelisk";
version = "0.6.0";
useDune2 = true;
src = fetchFromGitHub {
owner = "Lelio-Brun";
repo = pname;
rev = "v${version}";
sha256 = "1jjaqa2b7msl9qd3x7j34vdh1s9alq8hbvzk8a5srb4yyfyim15b";
};
strictDeps = true;
nativeBuildInputs = [ menhir ];
buildInputs = with ocamlPackages; [ re ];
meta = {
description = "A simple tool which produces pretty-printed output from a Menhir parser file (.mly)";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://github.com/Lelio-Brun/Obelisk";
};
}