lol

ocamlPackages.wtf8: init at 1.0.1

+34
+32
pkgs/development/ocaml-modules/wtf8/default.nix
··· 1 + { stdenv, fetchurl, ocaml, findlib, jbuilder }: 2 + 3 + assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01"; 4 + 5 + stdenv.mkDerivation rec { 6 + pname = "wtf8"; 7 + name = "ocaml-${pname}-${version}"; 8 + version = "1.0.1"; 9 + 10 + src = fetchurl { 11 + url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz"; 12 + sha256 = "1msg3vycd3k8qqj61sc23qks541cxpb97vrnrvrhjnqxsqnh6ygq"; 13 + }; 14 + 15 + unpackCmd = "tar xjf $src"; 16 + 17 + buildInputs = [ ocaml findlib jbuilder ]; 18 + 19 + buildPhase = "jbuilder build -p wtf8"; 20 + 21 + inherit (jbuilder) installPhase; 22 + 23 + createFindLibDestdir = true; 24 + 25 + meta = with stdenv.lib; { 26 + homepage = https://github.com/flowtype/ocaml-wtf8; 27 + description = "WTF-8 is a superset of UTF-8 that allows unpaired surrogates."; 28 + license = licenses.mit; 29 + platforms = ocaml.meta.platforms or []; 30 + maintainers = [ maintainers.eqyiel ]; 31 + }; 32 + }
+2
pkgs/top-level/ocaml-packages.nix
··· 681 681 682 682 wasm = callPackage ../development/ocaml-modules/wasm { }; 683 683 684 + wtf8 = callPackage ../development/ocaml-modules/wtf8 { }; 685 + 684 686 x509 = callPackage ../development/ocaml-modules/x509 { }; 685 687 686 688 xmlm = callPackage ../development/ocaml-modules/xmlm { };