mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 03:25:02 +00:00
14 lines
400 B
Nix
14 lines
400 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 = "jbuilder build -p ppx_cstruct";
|
|
}
|