diff --git a/pkgs/development/ocaml-modules/dune-rpc/default.nix b/pkgs/development/ocaml-modules/dune-rpc/default.nix new file mode 100644 index 00000000000..c0b2d958169 --- /dev/null +++ b/pkgs/development/ocaml-modules/dune-rpc/default.nix @@ -0,0 +1,23 @@ +{ lib, buildDunePackage, dune_3, stdune, ordering, pp, xdg, dyn }: + +buildDunePackage rec { + pname = "dune-rpc"; + inherit (dune_3) src version; + + duneVersion = "3"; + + dontAddPrefix = true; + + buildInputs = [ stdune ordering pp xdg dyn ]; + + preBuild = '' + rm -r vendor/csexp + ''; + + meta = with lib; { + description = "Library to connect and control a running dune instance"; + inherit (dune_3.meta) homepage; + maintainers = with lib.maintainers; [ ]; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 138cf3ca857..0762e7f9ad6 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -330,6 +330,8 @@ let inherit (pkgs) opam git mercurial coreutils gnutar bzip2; }; + dune-rpc = callPackage ../development/ocaml-modules/dune-rpc { }; + dune-site = callPackage ../development/ocaml-modules/dune-site { }; duration = callPackage ../development/ocaml-modules/duration { };