3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/cow/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

31 lines
861 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib
, ocamlbuild, topkg
, uri, xmlm, omd, ezjsonm }:
stdenv.mkDerivation rec {
version = "2.2.0";
pname = "ocaml-cow";
src = fetchFromGitHub {
owner = "mirage";
repo = "ocaml-cow";
rev = "v${version}";
sha256 = "0snhabg7rfrrcq2ksr3qghiawd61cw3y4kp6rl7vs87j4cnk3kr2";
};
buildInputs = [ ocaml ocamlbuild findlib topkg ];
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
inherit (topkg) buildPhase installPhase;
meta = with stdenv.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.
'';
license = licenses.isc;
maintainers = [ maintainers.sternenseemann ];
inherit (ocaml.meta) platforms;
};
}