depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ppxfind/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
788 B
Nix

{ stdenv, lib, buildDunePackage, fetchurl, ocaml, ocaml-migrate-parsetree }:
buildDunePackage (rec {
pname = "ppxfind";
version = "1.3";
src = fetchurl {
url = "https://github.com/diml/ppxfind/releases/download/${version}/ppxfind-${version}.tbz";
sha256 = "1r4jp0516378js62ss50a9s8ql2pm8lfdd3mnk214hp7s0kb17fl";
};
minimumOCamlVersion = "4.03";
buildInputs = [ ocaml-migrate-parsetree ];
# Don't run the native `strip' when cross-compiling.
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
meta = {
homepage = "https://github.com/diml/ppxfind";
description = "ocamlfind ppx tool";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
};
} // (
if lib.versions.majorMinor ocaml.version == "4.04" then {
dontStrip = true;
} else {}
))