Loading pkgs/development/ocaml-modules/semver/default.nix 0 → 100644 +30 −0 Original line number Diff line number Diff line { 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 ]; }; } pkgs/top-level/ocaml-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -1400,6 +1400,8 @@ let semaphore-compat = callPackage ../development/ocaml-modules/semaphore-compat { }; semver = callPackage ../development/ocaml-modules/semver { }; sha = callPackage ../development/ocaml-modules/sha { }; shared-memory-ring = callPackage ../development/ocaml-modules/shared-memory-ring { }; Loading Loading
pkgs/development/ocaml-modules/semver/default.nix 0 → 100644 +30 −0 Original line number Diff line number Diff line { 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 ]; }; }
pkgs/top-level/ocaml-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -1400,6 +1400,8 @@ let semaphore-compat = callPackage ../development/ocaml-modules/semaphore-compat { }; semver = callPackage ../development/ocaml-modules/semver { }; sha = callPackage ../development/ocaml-modules/sha { }; shared-memory-ring = callPackage ../development/ocaml-modules/shared-memory-ring { }; Loading