bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
27 lines
701 B
Nix
27 lines
701 B
Nix
{ buildDunePackage
|
|
, ocaml
|
|
, lib
|
|
, fetchurl
|
|
}:
|
|
|
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.2")
|
|
"stdcompat is not available for OCaml ${ocaml.version}"
|
|
|
|
buildDunePackage rec {
|
|
pname = "stdcompat";
|
|
version = "19";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
|
|
sha256 = "sha256-DKQGd4nnIN6SPls6hcA/2Jvc7ivYNpeMU6rYsVc1ClU=";
|
|
};
|
|
|
|
# Otherwise ./configure script will run and create files conflicting with dune.
|
|
dontConfigure = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/thierry-martinez/stdcompat";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
};
|
|
}
|