2021-01-11 13:49:15 +01:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, astring }:
|
2017-01-19 06:51:49 +01:00
|
|
|
|
2021-01-11 13:49:15 +01:00
|
|
|
if !lib.versionAtLeast ocaml.version "4.03"
|
2020-09-24 07:26:42 +02:00
|
|
|
then throw "fpath is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2017-01-19 06:51:49 +01:00
|
|
|
stdenv.mkDerivation {
|
2020-09-24 07:26:42 +02:00
|
|
|
name = "ocaml${ocaml.version}-fpath-0.7.3";
|
2017-01-19 06:51:49 +01:00
|
|
|
src = fetchurl {
|
2020-09-24 07:26:42 +02:00
|
|
|
url = "https://erratique.ch/software/fpath/releases/fpath-0.7.3.tbz";
|
|
|
|
sha256 = "03z7mj0sqdz465rc4drj1gr88l9q3nfs374yssvdjdyhjbqqzc0j";
|
2017-01-19 06:51:49 +01:00
|
|
|
};
|
|
|
|
|
2017-12-14 08:36:29 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2017-01-19 06:51:49 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ astring ];
|
|
|
|
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An OCaml module for handling file system paths with POSIX and Windows conventions";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://erratique.ch/software/fpath";
|
2021-01-11 13:49:15 +01:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-01-19 06:51:49 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|