about summary refs log tree commit diff
path: root/pkgs/by-name/hp/hpp-fcl/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/hp/hpp-fcl/package.nix')
-rw-r--r--pkgs/by-name/hp/hpp-fcl/package.nix20
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/by-name/hp/hpp-fcl/package.nix b/pkgs/by-name/hp/hpp-fcl/package.nix
index 78ce6456c301..80e715425034 100644
--- a/pkgs/by-name/hp/hpp-fcl/package.nix
+++ b/pkgs/by-name/hp/hpp-fcl/package.nix
@@ -28,10 +28,15 @@ stdenv.mkDerivation (finalAttrs: {
 
   strictDeps = true;
 
-  nativeBuildInputs = [
-    cmake
-    doxygen
-  ] ++ lib.optionals pythonSupport [ python3Packages.numpy ];
+  nativeBuildInputs =
+    [
+      cmake
+      doxygen
+    ]
+    ++ lib.optionals pythonSupport [
+      python3Packages.numpy
+      python3Packages.pythonImportsCheckHook
+    ];
 
   propagatedBuildInputs =
     [
@@ -56,11 +61,7 @@ stdenv.mkDerivation (finalAttrs: {
   ];
 
   doCheck = true;
-  # pythonImportsCheck, but in stdenv.mkDerivation
-  postInstall = lib.optionalString pythonSupport ''
-    PYTHONPATH=$out/${python3Packages.python.sitePackages}:$PYTHONPATH
-    python -c "import hppfcl"
-  '';
+  pythonImportsCheck = [ "hppfcl" ];
 
   outputs = [
     "dev"
@@ -77,5 +78,6 @@ stdenv.mkDerivation (finalAttrs: {
     homepage = "https://github.com/humanoid-path-planner/hpp-fcl";
     license = lib.licenses.bsd3;
     maintainers = with lib.maintainers; [ nim65s ];
+    platforms = lib.platforms.unix;
   };
 })