summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cstruct/ppx.nix
blob: 1696e200750c3782845d4dc351ab11a0f558938f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ 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";
}