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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.0 KiB
Nix
Raw Normal View History

2021-03-19 16:12:48 +00:00
{ lib, stdenv, fetchurl, cmake, gtest }:
2015-07-18 11:17:46 +00:00
stdenv.mkDerivation rec {
pname = "uriparser";
2022-10-06 01:09:09 +00:00
version = "0.9.7";
2015-07-18 11:17:46 +00:00
2018-08-21 13:39:35 +00:00
# Release tarball differs from source tarball
2015-07-18 11:17:46 +00:00
src = fetchurl {
url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
2022-10-06 01:09:09 +00:00
sha256 = "sha256-0n3qDItvb7l5jwfK7e8c2WpuP8XGGJWWd04Zr6fd3tc=";
2015-07-18 11:17:46 +00:00
};
2020-04-23 20:32:41 +00:00
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DURIPARSER_BUILD_DOCS=OFF"
] ++ lib.optional (!doCheck) "-DURIPARSER_BUILD_TESTS=OFF";
2020-04-23 20:08:12 +00:00
checkInputs = [ gtest ];
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
2015-07-18 11:17:46 +00:00
meta = with lib; {
2015-07-18 11:17:46 +00: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.
'';
homepage = "https://uriparser.github.io/";
license = licenses.bsd3;
2015-07-18 11:17:46 +00:00
maintainers = with maintainers; [ bosu ];
mainProgram = "uriparse";
platforms = platforms.unix;
2015-07-18 11:17:46 +00:00
};
}