summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/stdcompat/default.nix
blob: 25abe8fa9679145ffea47281b69b30d87939f28c (plain)
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
{
  buildDunePackage,
  ocaml,
  lib,
  fetchurl,
}:

buildDunePackage rec {
  pname = "stdcompat";
  version = "21.1";

  minimalOCamlVersion = "4.11";

  src = fetchurl {
    url = "https://github.com/ocamllibs/stdcompat/archive/refs/tags/${version}.tar.gz";
    sha256 = "sha256-RSJ9AgUEmt23QZCk60ETIXmkJhG7knQe+s8wNxxIHm4=";
  };

  # Otherwise ./configure script will run and create files conflicting with dune.
  dontConfigure = true;

  meta = {
    homepage = "https://github.com/ocamllibs/stdcompat";
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.vbgl ];
    broken = lib.versionAtLeast ocaml.version "5.4";
  };
}