diff options
author | sternenseemann <git@lukasepple.de> | 2020-04-14 11:39:02 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-04-25 09:45:22 +0200 |
commit | 79e6d13a4adae7e82595b89e5149b002ab2bf16e (patch) | |
tree | 4241a20b1eb9e809c6a66ff22b780d722526bceb /pkgs/development/ocaml-modules/cow | |
parent | 93a9ac696bad1b3afe072af85ae595686a5b7408 (diff) | |
download | nixpkgs-79e6d13a4adae7e82595b89e5149b002ab2bf16e.tar nixpkgs-79e6d13a4adae7e82595b89e5149b002ab2bf16e.tar.gz nixpkgs-79e6d13a4adae7e82595b89e5149b002ab2bf16e.tar.bz2 nixpkgs-79e6d13a4adae7e82595b89e5149b002ab2bf16e.tar.lz nixpkgs-79e6d13a4adae7e82595b89e5149b002ab2bf16e.tar.xz nixpkgs-79e6d13a4adae7e82595b89e5149b002ab2bf16e.tar.zst nixpkgs-79e6d13a4adae7e82595b89e5149b002ab2bf16e.zip |
ocamlPackages.cow: 2.2.0 -> 2.4.0
Diffstat (limited to 'pkgs/development/ocaml-modules/cow')
-rw-r--r-- | pkgs/development/ocaml-modules/cow/default.nix | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/pkgs/development/ocaml-modules/cow/default.nix b/pkgs/development/ocaml-modules/cow/default.nix index 2a4d7004faa..787854f8e41 100644 --- a/pkgs/development/ocaml-modules/cow/default.nix +++ b/pkgs/development/ocaml-modules/cow/default.nix @@ -1,30 +1,29 @@ -{ stdenv, fetchFromGitHub, ocaml, findlib -, ocamlbuild, topkg +{ lib, fetchurl, buildDunePackage, alcotest , uri, xmlm, omd, ezjsonm }: -stdenv.mkDerivation rec { - version = "2.2.0"; - pname = "ocaml-cow"; +buildDunePackage rec { + minimumOCamlVersion = "4.02.3"; - src = fetchFromGitHub { - owner = "mirage"; - repo = "ocaml-cow"; - rev = "v${version}"; - sha256 = "0snhabg7rfrrcq2ksr3qghiawd61cw3y4kp6rl7vs87j4cnk3kr2"; + version = "2.4.0"; + pname = "cow"; + + src = fetchurl { + url = "https://github.com/mirage/ocaml-cow/releases/download/v${version}/cow-v${version}.tbz"; + sha256 = "1x77lwpskda4zyikwxh500xjn90pgdwz6jm7ca7f36pyav4vl6zx"; }; - buildInputs = [ ocaml ocamlbuild findlib topkg ]; propagatedBuildInputs = [ xmlm uri ezjsonm omd ]; + checkInputs = [ alcotest ]; + doCheck = true; - inherit (topkg) buildPhase installPhase; - - meta = with stdenv.lib; { + meta = with lib; { description = "Caml on the Web"; longDescription = '' - Caml on the Web (COW) is a set of parsers and syntax extensions to let you manipulate HTML, CSS, XML, JSON and Markdown directly from OCaml code. + Writing web-applications requires a lot of skills: HTML, XML, JSON and + Markdown, to name but a few! This library provides OCaml combinators + for these web formats. ''; license = licenses.isc; maintainers = [ maintainers.sternenseemann ]; - inherit (ocaml.meta) platforms; }; } |