about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/fileutils/default.nix
blob: 832da7d3dc15678869eb61316f249d2486af565d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, fetchurl, ocaml, buildDunePackage, seq, stdlib-shims, ounit2 }:

buildDunePackage rec {
  pname = "fileutils";
  version = "0.6.4";

  src = fetchurl {
    url = "https://github.com/gildor478/ocaml-fileutils/releases/download/v${version}/fileutils-${version}.tbz";
    hash = "sha256-enu2vGo2tuvawrTkap6bENNmxaLUQXpfHWih+7oKRF8=";
  };

  minimalOCamlVersion = "4.03";

  propagatedBuildInputs = [
    seq
    stdlib-shims
  ];

  checkInputs = [
    ounit2
  ];
  doCheck = lib.versionAtLeast ocaml.version "4.08";

  meta = with lib; {
    description = "OCaml API to manipulate real files (POSIX like) and filenames";
    homepage = "https://github.com/gildor478/ocaml-fileutils";
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ vbgl ];
  };
}