Merge pull request #182727 from trofi/raptor2-dynamic-by-default

raptor2: enable shared libraries by default

authored by Artturi and committed by GitHub 35875ee0 66f6d190

+18 -1
+18 -1
pkgs/development/libraries/librdf/raptor2.nix
··· 1 - { lib, stdenv, libxml2, libxslt, pkg-config, cmake, fetchFromGitHub, perl, bison, flex, fetchpatch }: 2 3 stdenv.mkDerivation rec { 4 pname = "raptor2"; ··· 10 rev = "3cca62a33da68143b687c9e486eefc7c7cbb4586"; 11 sha256 = "sha256-h03IyFH1GHPqajfHBBTb19lCEu+VXzQLGC1wiEGVvgY="; 12 }; 13 14 patches = [ 15 # https://github.com/dajobe/raptor/pull/52
··· 1 + { lib 2 + , stdenv 3 + , libxml2 4 + , libxslt 5 + , pkg-config 6 + , cmake 7 + , fetchFromGitHub 8 + , perl 9 + , bison 10 + , flex 11 + , fetchpatch 12 + , static ? stdenv.hostPlatform.isStatic 13 + }: 14 15 stdenv.mkDerivation rec { 16 pname = "raptor2"; ··· 22 rev = "3cca62a33da68143b687c9e486eefc7c7cbb4586"; 23 sha256 = "sha256-h03IyFH1GHPqajfHBBTb19lCEu+VXzQLGC1wiEGVvgY="; 24 }; 25 + 26 + cmakeFlags = [ 27 + # Build defaults to static libraries. 28 + "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}" 29 + ]; 30 31 patches = [ 32 # https://github.com/dajobe/raptor/pull/52