diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-07-24 18:48:47 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-07-24 18:48:47 +0100 |
commit | f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db (patch) | |
tree | 9e25e6a45b105d7f8f81c10c15f8b27d930c84bf | |
parent | f4d202194fb3cb10dd738d96006e8371fd195132 (diff) | |
download | nixpkgs-f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db.tar nixpkgs-f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db.tar.gz nixpkgs-f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db.tar.bz2 nixpkgs-f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db.tar.lz nixpkgs-f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db.tar.xz nixpkgs-f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db.tar.zst nixpkgs-f5d5a46bc2b93030c780dd8bc78ffa2e5f17a4db.zip |
raptor2: enable shared libraries by default
-rw-r--r-- | pkgs/development/libraries/librdf/raptor2.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/pkgs/development/libraries/librdf/raptor2.nix b/pkgs/development/libraries/librdf/raptor2.nix index e290aa2b743..b085e080803 100644 --- a/pkgs/development/libraries/librdf/raptor2.nix +++ b/pkgs/development/libraries/librdf/raptor2.nix @@ -1,4 +1,16 @@ -{ lib, stdenv, libxml2, libxslt, pkg-config, cmake, fetchFromGitHub, perl, bison, flex, fetchpatch }: +{ lib +, stdenv +, libxml2 +, libxslt +, pkg-config +, cmake +, fetchFromGitHub +, perl +, bison +, flex +, fetchpatch +, static ? stdenv.hostPlatform.isStatic +}: stdenv.mkDerivation rec { pname = "raptor2"; @@ -11,6 +23,11 @@ stdenv.mkDerivation rec { sha256 = "sha256-h03IyFH1GHPqajfHBBTb19lCEu+VXzQLGC1wiEGVvgY="; }; + cmakeFlags = [ + # Build defaults to static libraries. + "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}" + ]; + patches = [ # https://github.com/dajobe/raptor/pull/52 (fetchpatch { |