ocamlPackages.semver: init at 0.1.0

authored by Ulrik Strid and committed by Vincent Laporte b5934423 3aaf6a92

+32
+30
pkgs/development/ocaml-modules/semver/default.nix
··· 1 + { stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }: 2 + 3 + lib.throwIfNot (lib.versionAtLeast ocaml.version "4.02") 4 + "semver is not available on OCaml older than 4.02" 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "ocaml${ocaml.version}-semver"; 8 + version = "0.1.0"; 9 + src = fetchzip { 10 + url = "https://github.com/rgrinberg/ocaml-semver/archive/v${version}.tar.gz"; 11 + sha256 = "sha256-0BzeuVTpuRIQjadGg08hTvMzZtKCl2utW2YK269oETk="; 12 + }; 13 + 14 + nativeBuildInputs = [ 15 + ocaml 16 + findlib 17 + ocamlbuild 18 + ]; 19 + 20 + strictDeps = true; 21 + createFindlibDestdir = true; 22 + 23 + meta = { 24 + homepage = "https://github.com/rgrinberg/ocaml-semver"; 25 + description = "Semantic versioning module"; 26 + platforms = ocaml.meta.platforms; 27 + license = lib.licenses.bsd3; 28 + maintainers = [ lib.maintainers.ulrikstrid ]; 29 + }; 30 + }
+2
pkgs/top-level/ocaml-packages.nix
··· 1400 1400 1401 1401 semaphore-compat = callPackage ../development/ocaml-modules/semaphore-compat { }; 1402 1402 1403 + semver = callPackage ../development/ocaml-modules/semver { }; 1404 + 1403 1405 sha = callPackage ../development/ocaml-modules/sha { }; 1404 1406 1405 1407 shared-memory-ring = callPackage ../development/ocaml-modules/shared-memory-ring { };