Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 librdf_raptor2, 6 gmp, 7 pkg-config, 8 libxml2, 9 perl, 10 testers, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "rasqal"; 15 version = "0.9.33"; 16 17 src = fetchurl { 18 url = "http://download.librdf.org/source/rasqal-${finalAttrs.version}.tar.gz"; 19 sha256 = "0z6rrwn4jsagvarg8d5zf0j352kjgi33py39jqd29gbhcnncj939"; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 24 buildInputs = [ 25 gmp 26 libxml2 27 ]; 28 29 propagatedBuildInputs = [ librdf_raptor2 ]; 30 31 confiugureFlags = [ 32 # uses 'regex.h' as a fallback, which is preferrable 33 "--disable-pcre" 34 ]; 35 36 postInstall = "rm -rvf $out/share/gtk-doc"; 37 38 nativeCheckInputs = [ perl ]; 39 doCheck = false; # fails with "No testsuite plan file sparql-query-plan.ttl could be created in build/..." 40 doInstallCheck = false; # fails with "rasqal-config does not support (--help|--version)" 41 42 passthru.tests = { 43 # rasqal-config --version just checks the pkg-config module. 44 # That check is broken, checking the pkg-config ourselves is a good replacement. 45 pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 46 }; 47 48 meta = { 49 description = "Library that handles Resource Description Framework (RDF)"; 50 homepage = "https://librdf.org/rasqal"; 51 license = with lib.licenses; [ 52 lgpl21 53 asl20 54 ]; 55 maintainers = with lib.maintainers; [ marcweber ]; 56 platforms = lib.platforms.unix; 57 pkgConfigModules = [ "rasqal" ]; 58 }; 59})