tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
raptor2: enable shared libraries by default
Sergei Trofimovich
3 years ago
f5d5a46b
f4d20219
+18
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
librdf
raptor2.nix
+18
-1
pkgs/development/libraries/librdf/raptor2.nix
···
1
1
-
{ lib, stdenv, libxml2, libxslt, pkg-config, cmake, fetchFromGitHub, perl, bison, flex, fetchpatch }:
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, libxml2
4
4
+
, libxslt
5
5
+
, pkg-config
6
6
+
, cmake
7
7
+
, fetchFromGitHub
8
8
+
, perl
9
9
+
, bison
10
10
+
, flex
11
11
+
, fetchpatch
12
12
+
, static ? stdenv.hostPlatform.isStatic
13
13
+
}:
2
14
3
15
stdenv.mkDerivation rec {
4
16
pname = "raptor2";
···
10
22
rev = "3cca62a33da68143b687c9e486eefc7c7cbb4586";
11
23
sha256 = "sha256-h03IyFH1GHPqajfHBBTb19lCEu+VXzQLGC1wiEGVvgY=";
12
24
};
25
25
+
26
26
+
cmakeFlags = [
27
27
+
# Build defaults to static libraries.
28
28
+
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
29
29
+
];
13
30
14
31
patches = [
15
32
# https://github.com/dajobe/raptor/pull/52