3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/cstruct/ppx.nix

14 lines
396 B
Nix
Raw Normal View History

2017-11-27 19:08:40 +00:00
{ 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 ];
2018-09-05 17:11:47 +01:00
buildPhase = "dune build -p ppx_cstruct";
2017-11-27 19:08:40 +00:00
}