about summary refs log tree commit diff
path: root/pkgs/development/python-modules/detectron2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/detectron2/default.nix')
-rw-r--r--pkgs/development/python-modules/detectron2/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/detectron2/default.nix b/pkgs/development/python-modules/detectron2/default.nix
index 2247b4581a4d..42b8f0a6f43c 100644
--- a/pkgs/development/python-modules/detectron2/default.nix
+++ b/pkgs/development/python-modules/detectron2/default.nix
@@ -99,7 +99,7 @@ buildPythonPackage {
     pydot # no idea why this is not in their setup.py
   ];
 
-  passthru.optional-dependencies = optional-dependencies;
+  optional-dependencies = optional-dependencies;
 
   nativeCheckInputs = [
     av
@@ -163,7 +163,7 @@ buildPythonPackage {
       "test_overlay_instances_no_boxes"
       "test_get_bounding_box"
     ]
-    ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [
+    ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
       "test_build_batch_dataloader_inference"
       "test_build_dataloader_inference"
       "test_build_iterable_dataloader_inference"