mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 17:51:40 -05:00
Merge pull request #849 from bouk/open3d-systemd
overrides: open3d only include udev on Linux
This commit is contained in:
commit
4d2b74aba2
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue