buildDunePackage: new support function; use it to refactor some OCaml derivations
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
{ stdenv, ocaml, findlib, dune, zmq, ocaml_lwt }:
|
||||
{ stdenv, buildDunePackage, zmq, ocaml_lwt }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocaml${ocaml.version}-zmq-lwt-${version}";
|
||||
inherit (zmq) version src installPhase meta;
|
||||
|
||||
buildInputs = [ ocaml findlib dune ];
|
||||
buildDunePackage rec {
|
||||
pname = "zmq-lwt";
|
||||
inherit (zmq) version src meta;
|
||||
|
||||
propagatedBuildInputs = [ zmq ocaml_lwt ];
|
||||
|
||||
buildPhase = "dune build -p zmq-lwt";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user