From ec841f6b65496e3ed42fe907c8b9190a8ea6ae96 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 26 Aug 2024 19:21:58 +0200 Subject: [PATCH] hpp-fcl: nixfmt --- .../development/libraries/hpp-fcl/default.nix | 65 ++++++++++--------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/pkgs/development/libraries/hpp-fcl/default.nix b/pkgs/development/libraries/hpp-fcl/default.nix index c3d5f1185bfe..55e0b469b36e 100644 --- a/pkgs/development/libraries/hpp-fcl/default.nix +++ b/pkgs/development/libraries/hpp-fcl/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, doxygen -, boost -, eigen -, assimp -, octomap -, qhull -, pythonSupport ? false -, python3Packages -, zlib +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + doxygen, + boost, + eigen, + assimp, + octomap, + qhull, + pythonSupport ? false, + python3Packages, + zlib, }: stdenv.mkDerivation (finalAttrs: { @@ -30,22 +31,23 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake doxygen - ] ++ lib.optionals pythonSupport [ - python3Packages.numpy - ]; + ] ++ lib.optionals pythonSupport [ python3Packages.numpy ]; - propagatedBuildInputs = [ - assimp - qhull - octomap - zlib - ] ++ lib.optionals (!pythonSupport) [ - boost - eigen - ] ++ lib.optionals pythonSupport [ - python3Packages.boost - python3Packages.eigenpy - ]; + propagatedBuildInputs = + [ + assimp + qhull + octomap + zlib + ] + ++ lib.optionals (!pythonSupport) [ + boost + eigen + ] + ++ lib.optionals pythonSupport [ + python3Packages.boost + python3Packages.eigenpy + ]; cmakeFlags = [ (lib.cmakeBool "HPP_FCL_HAS_QHULL" true) @@ -60,13 +62,16 @@ stdenv.mkDerivation (finalAttrs: { python -c "import hppfcl" ''; - outputs = [ "dev" "out" "doc" ]; + outputs = [ + "dev" + "out" + "doc" + ]; postFixup = '' moveToOutput share/ament_index "$dev" moveToOutput share/${finalAttrs.pname} "$dev" ''; - meta = with lib; { description = "Extension of the Flexible Collision Library"; homepage = "https://github.com/humanoid-path-planner/hpp-fcl";