diff options
author | Ulrik Strid <ulrik.strid@outlook.com> | 2022-10-11 09:19:30 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-10-18 16:42:28 +0200 |
commit | b593442345ecbdf689a749a68bc89d5ec1cfe397 (patch) | |
tree | f37084a1fb8763469247f89aee2531410672accb /pkgs/development/ocaml-modules/semver | |
parent | 3aaf6a9234b29461fd61309e72459b6a5737a70c (diff) |
ocamlPackages.semver: init at 0.1.0
Diffstat (limited to 'pkgs/development/ocaml-modules/semver')
-rw-r--r-- | pkgs/development/ocaml-modules/semver/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/semver/default.nix b/pkgs/development/ocaml-modules/semver/default.nix new file mode 100644 index 0000000000000..15bd02f186872 --- /dev/null +++ b/pkgs/development/ocaml-modules/semver/default.nix @@ -0,0 +1,30 @@ +{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }: + +lib.throwIfNot (lib.versionAtLeast ocaml.version "4.02") + "semver is not available on OCaml older than 4.02" + +stdenv.mkDerivation rec { + pname = "ocaml${ocaml.version}-semver"; + version = "0.1.0"; + src = fetchzip { + url = "https://github.com/rgrinberg/ocaml-semver/archive/v${version}.tar.gz"; + sha256 = "sha256-0BzeuVTpuRIQjadGg08hTvMzZtKCl2utW2YK269oETk="; + }; + + nativeBuildInputs = [ + ocaml + findlib + ocamlbuild + ]; + + strictDeps = true; + createFindlibDestdir = true; + + meta = { + homepage = "https://github.com/rgrinberg/ocaml-semver"; + description = "Semantic versioning module"; + platforms = ocaml.meta.platforms; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.ulrikstrid ]; + }; +} |