From 4b55b3809ef6c1da19e18d41a13743daf600629a Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 24 Apr 2022 12:00:00 +0000 Subject: [PATCH] ocamlPackages.dune-rpc: init at ${dune_3.version} --- .../ocaml-modules/dune-rpc/default.nix | 23 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/ocaml-modules/dune-rpc/default.nix 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 { };