about summary refs log tree commit diff
path: root/pkgs/by-name/pi/pinocchio/package.nix
diff options
context:
space:
mode:
authorGuilhem Saurel2024-09-17 15:52:22 +0200
committerGuilhem Saurel2024-09-18 22:41:00 +0200
commitf048cdeba0b5112a95656e87979b168a8384d5c6 (patch)
treed4ec261c944e7bc19c5bf81e70a534e111a17d2e /pkgs/by-name/pi/pinocchio/package.nix
parent49518d287b1f3221e6481e88192258f0a93cb690 (diff)
pinocchio: format
Diffstat (limited to 'pkgs/by-name/pi/pinocchio/package.nix')
-rw-r--r--pkgs/by-name/pi/pinocchio/package.nix87
1 files changed, 45 insertions, 42 deletions
diff --git a/pkgs/by-name/pi/pinocchio/package.nix b/pkgs/by-name/pi/pinocchio/package.nix
index 238ae8d46337..ff1b5cf9572f 100644
--- a/pkgs/by-name/pi/pinocchio/package.nix
+++ b/pkgs/by-name/pi/pinocchio/package.nix
@@ -1,19 +1,20 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, casadi
-, cmake
-, boost
-, eigen
-, example-robot-data
-, casadiSupport ? true
-, collisionSupport ? true
-, console-bridge
-, jrl-cmakemodules
-, hpp-fcl
-, urdfdom
-, pythonSupport ? false
-, python3Packages
+{
+  lib,
+  stdenv,
+  fetchFromGitHub,
+  casadi,
+  cmake,
+  boost,
+  eigen,
+  example-robot-data,
+  casadiSupport ? true,
+  collisionSupport ? true,
+  console-bridge,
+  jrl-cmakemodules,
+  hpp-fcl,
+  urdfdom,
+  pythonSupport ? false,
+  python3Packages,
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -55,32 +56,31 @@ stdenv.mkDerivation (finalAttrs: {
 
   strictDeps = true;
 
-  nativeBuildInputs = [
-    cmake
-  ] ++ lib.optionals pythonSupport [
-    python3Packages.python
-    python3Packages.pythonImportsCheckHook
-  ];
+  nativeBuildInputs =
+    [ cmake ]
+    ++ lib.optionals pythonSupport [
+      python3Packages.python
+      python3Packages.pythonImportsCheckHook
+    ];
 
-  propagatedBuildInputs = [
-    console-bridge
-    jrl-cmakemodules
-    urdfdom
-  ] ++ lib.optionals (!pythonSupport) [
-    boost
-    eigen
-  ] ++ lib.optionals (!pythonSupport && collisionSupport) [
-    hpp-fcl
-  ] ++ lib.optionals pythonSupport [
-    python3Packages.boost
-    python3Packages.eigenpy
-  ] ++ lib.optionals (pythonSupport && collisionSupport) [
-    python3Packages.hpp-fcl
-  ] ++ lib.optionals (!pythonSupport && casadiSupport) [
-    casadi
-  ] ++ lib.optionals (pythonSupport && casadiSupport) [
-    python3Packages.casadi
-  ];
+  propagatedBuildInputs =
+    [
+      console-bridge
+      jrl-cmakemodules
+      urdfdom
+    ]
+    ++ lib.optionals (!pythonSupport) [
+      boost
+      eigen
+    ]
+    ++ lib.optionals (!pythonSupport && collisionSupport) [ hpp-fcl ]
+    ++ lib.optionals pythonSupport [
+      python3Packages.boost
+      python3Packages.eigenpy
+    ]
+    ++ lib.optionals (pythonSupport && collisionSupport) [ python3Packages.hpp-fcl ]
+    ++ lib.optionals (!pythonSupport && casadiSupport) [ casadi ]
+    ++ lib.optionals (pythonSupport && casadiSupport) [ python3Packages.casadi ];
 
   checkInputs = lib.optionals (pythonSupport && casadiSupport) [ python3Packages.matplotlib ];
 
@@ -98,7 +98,10 @@ stdenv.mkDerivation (finalAttrs: {
     description = "Fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives";
     homepage = "https://github.com/stack-of-tasks/pinocchio";
     license = lib.licenses.bsd2;
-    maintainers = with lib.maintainers; [ nim65s wegank ];
+    maintainers = with lib.maintainers; [
+      nim65s
+      wegank
+    ];
     platforms = lib.platforms.unix;
   };
 })