nixpkgs/pkgs/development/libraries/uriparser/default.nix

31 lines
1 KiB
Nix
Raw Normal View History

2018-11-23 05:00:54 +01:00
{ lib, stdenv, fetchurl, gtest, pkgconfig, doxygen, graphviz }:
2015-07-18 13:17:46 +02:00
stdenv.mkDerivation rec {
name = "uriparser-${version}";
2018-10-27 21:42:49 +02:00
version = "0.9.0";
2015-07-18 13:17:46 +02:00
2018-08-21 15:39:35 +02:00
# Release tarball differs from source tarball
2015-07-18 13:17:46 +02:00
src = fetchurl {
2018-08-21 15:39:35 +02:00
url = "https://github.com/uriparser/uriparser/releases/download/${name}/${name}.tar.bz2";
2018-10-27 21:42:49 +02:00
sha256 = "0b2yagxzhq9ghpszci6a9xlqg0yl7vq9j5r8dwbar3nszqsfnrzc";
2015-07-18 13:17:46 +02:00
};
2018-11-23 05:00:54 +01:00
nativeBuildInputs = [ pkgconfig doxygen graphviz ];
buildInputs = lib.optional doCheck gtest;
configureFlags = lib.optional (!doCheck) "--disable-tests";
2018-11-23 05:00:54 +01:00
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
2015-07-18 13:17:46 +02:00
meta = with stdenv.lib; {
2018-08-21 15:39:35 +02:00
homepage = https://uriparser.github.io/;
2015-07-18 13:17:46 +02:00
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.linux;
2015-07-18 13:17:46 +02:00
maintainers = with maintainers; [ bosu ];
};
}