depot/third_party/nixpkgs/pkgs/development/libraries/uriparser/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, gtest, pkgconfig, doxygen, graphviz }:
stdenv.mkDerivation rec {
pname = "uriparser";
version = "0.9.1";
# Release tarball differs from source tarball
src = fetchurl {
url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
sha256 = "1gisi7h8hd6mswbiaaa3s25bnb77xf37pzrmjy63rcdpwcyqy93m";
};
nativeBuildInputs = [ pkgconfig doxygen graphviz ];
buildInputs = lib.optional doCheck gtest;
configureFlags = lib.optional (!doCheck) "--disable-tests";
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
meta = with stdenv.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 ];
};
}