summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocaml-version
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-12-07 06:54:43 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-12-14 15:57:36 +0100
commitb5e82ad23967c349f99a222df10040c8f5f8fb64 (patch)
tree2553a93988a70fdae2f27832b83ccaff89f932c0 /pkgs/development/ocaml-modules/ocaml-version
parent5746e9fd9173dcb74b9611057d854654ab7db5f0 (diff)
downloadnixpkgs-b5e82ad23967c349f99a222df10040c8f5f8fb64.tar
nixpkgs-b5e82ad23967c349f99a222df10040c8f5f8fb64.tar.gz
nixpkgs-b5e82ad23967c349f99a222df10040c8f5f8fb64.tar.bz2
nixpkgs-b5e82ad23967c349f99a222df10040c8f5f8fb64.tar.lz
nixpkgs-b5e82ad23967c349f99a222df10040c8f5f8fb64.tar.xz
nixpkgs-b5e82ad23967c349f99a222df10040c8f5f8fb64.tar.zst
nixpkgs-b5e82ad23967c349f99a222df10040c8f5f8fb64.zip
ocamlPackages.ocaml-version: init at 2.3.0
Diffstat (limited to 'pkgs/development/ocaml-modules/ocaml-version')
-rw-r--r--pkgs/development/ocaml-modules/ocaml-version/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-version/default.nix b/pkgs/development/ocaml-modules/ocaml-version/default.nix
new file mode 100644
index 00000000000..45761e98049
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocaml-version/default.nix
@@ -0,0 +1,22 @@
+{ lib, fetchurl, buildDunePackage, result }:
+
+buildDunePackage rec {
+
+  pname = "ocaml-version";
+  version = "2.3.0";
+
+  src = fetchurl {
+    url = "https://github.com/ocurrent/ocaml-version/releases/download/v${version}/ocaml-version-v${version}.tbz";
+    sha256 = "0c711lifl35xila9k0rvhijy9zm3shd37q3jgw7xf01hn1swg0hn";
+  };
+
+  propagatedBuildInputs = [ result ];
+
+  meta = {
+    description = "Manipulate, parse and generate OCaml compiler version strings";
+    homepage = "https://github.com/ocurrent/ocaml-version";
+    license = lib.licenses.isc;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+
+}