nixpkgs/pkgs/development/ocaml-modules/cstruct/ppx.nix
2018-09-15 19:32:32 +00:00

13 lines
396 B
Nix

{ stdenv, ocaml, cstruct, ppx_tools_versioned }:
assert stdenv.lib.versionAtLeast ocaml.version "4.02";
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ppx_cstruct-${version}";
inherit (cstruct) version src unpackCmd installPhase meta;
buildInputs = cstruct.buildInputs ++ [ ppx_tools_versioned ];
propagatedBuildInputs = [ cstruct ];
buildPhase = "dune build -p ppx_cstruct";
}