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