forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / ocaml-modules / stdcompat / default.nix
blob23eeca421f5ea2b8d8a367a9cbde8870f4a63fde
1 { buildDunePackage
2 , ocaml
3 , lib
4 , fetchurl
5 }:
7 lib.throwIf (lib.versionAtLeast ocaml.version "5.2")
8   "stdcompat is not available for OCaml ${ocaml.version}"
10 buildDunePackage rec {
11   pname = "stdcompat";
12   version = "19";
14   src = fetchurl {
15     url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
16     sha256 = "sha256-DKQGd4nnIN6SPls6hcA/2Jvc7ivYNpeMU6rYsVc1ClU=";
17   };
19   # Otherwise ./configure script will run and create files conflicting with dune.
20   dontConfigure = true;
22   meta = {
23     homepage = "https://github.com/thierry-martinez/stdcompat";
24     license = lib.licenses.bsd2;
25     maintainers = [ lib.maintainers.vbgl ];
26   };