2020-01-09 02:41:26 +00:00
|
|
|
{ stdenv, lib, buildDunePackage, fetchurl, ocaml, ocaml-migrate-parsetree }:
|
2018-12-17 21:39:33 +00:00
|
|
|
|
2019-08-14 16:35:28 +01:00
|
|
|
buildDunePackage (rec {
|
2021-01-21 00:24:35 +00:00
|
|
|
pname = "ppxfind";
|
|
|
|
version = "1.4";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/diml/ppxfind/releases/download/${version}/ppxfind-${version}.tbz";
|
|
|
|
sha256 = "0wa9vcrc26kirc2cqqs6kmarbi8gqy3dgdfiv9y7nzsgy1liqacq";
|
|
|
|
};
|
2018-12-17 21:39:33 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
minimumOCamlVersion = "4.03";
|
|
|
|
useDune2 = true;
|
2018-12-17 21:39:33 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
buildInputs = [ ocaml-migrate-parsetree ];
|
2018-12-17 21:39:33 +00:00
|
|
|
|
2020-01-09 02:41:26 +00:00
|
|
|
# Don't run the native `strip' when cross-compiling.
|
|
|
|
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
|
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/diml/ppxfind";
|
|
|
|
description = "ocamlfind ppx tool";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
2019-08-14 16:35:28 +01:00
|
|
|
} // (
|
|
|
|
if lib.versions.majorMinor ocaml.version == "4.04" then {
|
|
|
|
dontStrip = true;
|
|
|
|
} else {}
|
|
|
|
))
|