nixpkgs/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix
Malo Bourgon ba54ba9316 ocamlPackages: add meta.mainProgram to packages with multiple executables
where none of the executables match the package's `name` or `pname`, and
one of the executables is the obvious `mainProgram`.
2022-05-20 10:13:29 +02:00

21 lines
479 B
Nix

{ buildDunePackage, fetchFromGitHub, js_of_ocaml-compiler
, camlp4, ocsigen_deriving
}:
buildDunePackage rec {
version = "3.2.1";
pname = "js_of_ocaml-camlp4";
useDune2 = false;
src = fetchFromGitHub {
owner = "ocsigen";
repo = "js_of_ocaml";
rev = version;
sha256 = "1v2hfq0ra9j07yz6pj6m03hrvgys4vmx0gclchv94yywpb2wc7ik";
};
buildInputs = [ camlp4 ocsigen_deriving ];
meta = builtins.removeAttrs js_of_ocaml-compiler.meta [ "mainProgram" ];
}