about summary refs log tree commit diff
path: root/pkgs/applications/science/biology/ants
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-09-02 22:17:19 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2023-09-02 22:17:19 +0200
commit35145f9df092a476a7995018ec1115c97d426fee (patch)
tree45dee673ad26eefae93597186b82c20a4fc83b12 /pkgs/applications/science/biology/ants
parent875e737bfabe34b3976a1613b9810de52e497a49 (diff)
ants: reformat file using `nixpkgs-fmt`
Diffstat (limited to 'pkgs/applications/science/biology/ants')
-rw-r--r--pkgs/applications/science/biology/ants/default.nix38
1 files changed, 29 insertions, 9 deletions
diff --git a/pkgs/applications/science/biology/ants/default.nix b/pkgs/applications/science/biology/ants/default.nix
index a28a601fcda31..dc0b16e9f4a6e 100644
--- a/pkgs/applications/science/biology/ants/default.nix
+++ b/pkgs/applications/science/biology/ants/default.nix
@@ -1,4 +1,12 @@
-{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk, Cocoa }:
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, makeBinaryWrapper
+, itk
+, vtk
+, Cocoa
+}:
 
 stdenv.mkDerivation rec {
   pname = "ANTs";
@@ -11,10 +19,22 @@ stdenv.mkDerivation rec {
     hash = "sha256-rSibcsprhMC1qsuZN8ou32QPLf8n62BiDzpnTRWRx0Q=";
   };
 
-  nativeBuildInputs = [ cmake makeWrapper ];
-  buildInputs = [ itk vtk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
+  nativeBuildInputs = [
+    cmake
+    makeBinaryWrapper
+  ];
 
-  cmakeFlags = [ "-DANTS_SUPERBUILD=FALSE" "-DUSE_VTK=TRUE" ];
+  buildInputs = [
+    itk
+    vtk
+  ] ++ lib.optionals stdenv.isDarwin [
+    Cocoa
+  ];
+
+  cmakeFlags = [
+    "-DANTS_SUPERBUILD=FALSE"
+    "-DUSE_VTK=TRUE"
+  ];
 
   postInstall = ''
     for file in $out/bin/*; do
@@ -22,11 +42,11 @@ stdenv.mkDerivation rec {
     done
   '';
 
-  meta = with lib; {
-    homepage = "https://github.com/ANTsX/ANTs";
+  meta = {
     description = "Advanced normalization toolkit for medical image registration and other processing";
-    maintainers = with maintainers; [ bcdarwin ];
-    platforms = platforms.unix;
-    license = licenses.bsd3;
+    homepage = "https://github.com/ANTsX/ANTs";
+    license = lib.licenses.bsd3;
+    maintainers = with lib.maintainers; [ bcdarwin ];
+    platforms = lib.platforms.unix;
   };
 }