Merge pull request #849 from bouk/open3d-systemd

overrides: open3d only include udev on Linux
This commit is contained in:
adisbladis 2022-12-08 18:56:04 +13:00 committed by GitHub
commit 4d2b74aba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1324,9 +1324,10 @@ lib.composeManyExtensions [
open3d = super.open3d.overridePythonAttrs (old: {
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.ipywidgets ];
buildInputs = (old.buildInputs or [ ]) ++ [
pkgs.udev
pkgs.libusb1
] ++ (if lib.versionAtLeast super.open3d.version "0.16.0" then [
] ++ lib.optionals stdenv.isLinux [
pkgs.udev
] ++ lib.optionals (lib.versionAtLeast super.open3d.version "0.16.0") [
pkgs.mesa
(
pkgs.symlinkJoin {
@ -1341,7 +1342,7 @@ lib.composeManyExtensions [
)
];
})
] else [ ]);
];
# TODO(Sem Mulder): Add overridable flags for CUDA/PyTorch/Tensorflow support.
autoPatchelfIgnoreMissingDeps = true;
});