Skip to content

Commit

Permalink
Merge pull request #182727 from trofi/raptor2-dynamic-by-default
Browse files Browse the repository at this point in the history
raptor2: enable shared libraries by default
  • Loading branch information
Artturin authored Jul 24, 2022
2 parents 66f6d19 + f5d5a46 commit 35875ee
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pkgs/development/libraries/librdf/raptor2.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 {
Expand Down

0 comments on commit 35875ee

Please sign in to comment.