depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ocaml-version/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

25 lines
675 B
Nix

{ lib, fetchurl, buildDunePackage, alcotest }:
buildDunePackage rec {
pname = "ocaml-version";
version = "3.4.0";
src = fetchurl {
url = "https://github.com/ocurrent/ocaml-version/releases/download/v${version}/ocaml-version-v${version}.tbz";
sha256 = "sha256-2MG+tejY67dxC19DTOZqPsi3UrHk1rqHxP4nRSvbiiU=";
};
checkInputs = [ alcotest ];
doCheck = true;
minimumOCamlVersion = "4.07";
useDune2 = true;
meta = with lib; {
description = "Manipulate, parse and generate OCaml compiler version strings";
homepage = "https://github.com/ocurrent/ocaml-version";
license = licenses.isc;
maintainers = with maintainers; [ vbgl ];
};
}