xrootd: fix python bindings build
This commit is contained in:
@@ -109,6 +109,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
mkdir -p "$out/lib/systemd/system"
|
||||
install -m 644 -t "$out/lib/systemd/system" ../systemd/*.service ../systemd/*.socket
|
||||
''
|
||||
# Install missing private headers needed by Python bindings
|
||||
+ ''
|
||||
mkdir -p $dev/include/xrootd/private/XrdCks
|
||||
cp ../src/XrdCks/XrdCksXAttr.hh $dev/include/xrootd/private/XrdCks/
|
||||
mkdir -p $dev/include/xrootd/private/XrdOuc
|
||||
cp ../src/XrdOuc/XrdOucXAttr.hh $dev/include/xrootd/private/XrdOuc/
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
|
||||
@@ -12,7 +12,11 @@ buildPythonPackage rec {
|
||||
|
||||
inherit (xrootd) version src;
|
||||
|
||||
sourceRoot = "${src.name}/bindings/python";
|
||||
sourceRoot = "${src.name}/python";
|
||||
|
||||
env.CMAKE_ARGS = lib.toString [
|
||||
(lib.cmakeFeature "XRootD_INCLUDE_DIR" "${lib.getDev xrootd}/include/xrootd;${src}/src")
|
||||
];
|
||||
|
||||
build-system = [
|
||||
cmake
|
||||
|
||||
Reference in New Issue
Block a user