summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/stdcompat/default.nix
blob: 3630be368e55646b609ee0b005e7f53b4d7f2b30 (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
{ stdenv, lib, fetchurl
, ocaml, findlib
}:

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-stdcompat";
  version = "18";

  src = fetchurl {
    url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
    sha256 = "sha256:01y67rndjlzfp5zq0gbqpg9skqq2hfbvhbq9lfhhk5xidr98sfj8";
  };

  nativeBuildInputs = [ ocaml findlib ];

  strictDeps = true;

  # build fails otherwise
  enableParallelBuilding = false;

  configureFlags = [ "--libdir=$(OCAMLFIND_DESTDIR)" ];

  meta = {
    homepage = "https://github.com/thierry-martinez/stdcompat";
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.vbgl ];
    inherit (ocaml.meta) platforms;
  };
}