depot/third_party/nixpkgs/pkgs/development/libraries/uriparser/default.nix
Default email 849ee4d900 Project import generated by Copybara.
GitOrigin-RevId: 9e377a6ce42dccd9b624ae4ce8f978dc892ba0e2
2021-04-08 18:26:57 +02:00

33 lines
1,002 B
Nix

{ lib, stdenv, fetchurl, cmake, gtest }:
stdenv.mkDerivation rec {
pname = "uriparser";
version = "0.9.5";
# Release tarball differs from source tarball
src = fetchurl {
url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
sha256 = "0v30qr5hl3xybl9nzwaw46kblwn94w5xpri22wanrrpjlzmn306x";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DURIPARSER_BUILD_DOCS=OFF"
];
checkInputs = [ gtest ];
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
meta = with lib; {
homepage = "https://uriparser.github.io/";
description = "Strictly RFC 3986 compliant URI parsing library";
longDescription = ''
uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C.
API documentation is available on uriparser website.
'';
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ bosu ];
};
}