nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 gtest, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "uriparser"; 11 version = "1.0.0"; 12 13 src = fetchFromGitHub { 14 owner = "uriparser"; 15 repo = "uriparser"; 16 tag = "uriparser-${finalAttrs.version}"; 17 hash = "sha256-k4hRy4kfsaxUNIITPNxzqVgl+AwiR1NpKcE9DtAbwxc="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 cmakeFlags = [ 23 (lib.cmakeBool "URIPARSER_BUILD_DOCS" false) 24 (lib.cmakeBool "URIPARSER_BUILD_TESTS" finalAttrs.finalPackage.doCheck) 25 ]; 26 27 doCheck = true; 28 29 nativeCheckInputs = [ gtest ]; 30 31 meta = { 32 changelog = "https://github.com/uriparser/uriparser/blob/uriparser-${finalAttrs.version}/ChangeLog"; 33 description = "Strictly RFC 3986 compliant URI parsing library"; 34 longDescription = '' 35 uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C. 36 API documentation is available on uriparser website. 37 ''; 38 homepage = "https://uriparser.github.io/"; 39 license = lib.licenses.bsd3; 40 maintainers = with lib.maintainers; [ bosu ]; 41 mainProgram = "uriparse"; 42 platforms = lib.platforms.unix; 43 }; 44})