diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/uriparser/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/uriparser/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/uriparser/default.nix b/nixpkgs/pkgs/development/libraries/uriparser/default.nix new file mode 100644 index 000000000000..ac9f67e1e129 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/uriparser/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchurl, gtest, pkgconfig, doxygen, graphviz }: + +stdenv.mkDerivation rec { + name = "uriparser-${version}"; + version = "0.9.0"; + + # Release tarball differs from source tarball + src = fetchurl { + url = "https://github.com/uriparser/uriparser/releases/download/${name}/${name}.tar.bz2"; + sha256 = "0b2yagxzhq9ghpszci6a9xlqg0yl7vq9j5r8dwbar3nszqsfnrzc"; + }; + + 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.linux; + maintainers = with maintainers; [ bosu ]; + }; +} |