567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
31 lines
681 B
Nix
31 lines
681 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
buildDunePackage,
|
|
alcotest,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "ocaml-version";
|
|
version = "4.0.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocurrent/ocaml-version/releases/download/v${version}/ocaml-version-${version}.tbz";
|
|
hash = "sha256-GM5e7fTKWhx6tSJ9xfNdW2fy8wYWhmbf3uGvqGKQm7M=";
|
|
};
|
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
doCheck = true;
|
|
|
|
minimalOCamlVersion = "4.07";
|
|
duneVersion = "3";
|
|
|
|
meta = {
|
|
description = "Manipulate, parse and generate OCaml compiler version strings";
|
|
homepage = "https://github.com/ocurrent/ocaml-version";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
};
|
|
}
|