ants: reformat file using nixpkgs-fmt
This commit is contained in:
parent
875e737bfa
commit
35145f9df0
|
@ -1,4 +1,12 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk, Cocoa }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, makeBinaryWrapper
|
||||||
|
, itk
|
||||||
|
, vtk
|
||||||
|
, Cocoa
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ANTs";
|
pname = "ANTs";
|
||||||
|
@ -11,10 +19,22 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-rSibcsprhMC1qsuZN8ou32QPLf8n62BiDzpnTRWRx0Q=";
|
hash = "sha256-rSibcsprhMC1qsuZN8ou32QPLf8n62BiDzpnTRWRx0Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake makeWrapper ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ itk vtk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
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 = ''
|
postInstall = ''
|
||||||
for file in $out/bin/*; do
|
for file in $out/bin/*; do
|
||||||
|
@ -22,11 +42,11 @@ stdenv.mkDerivation rec {
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/ANTsX/ANTs";
|
|
||||||
description = "Advanced normalization toolkit for medical image registration and other processing";
|
description = "Advanced normalization toolkit for medical image registration and other processing";
|
||||||
maintainers = with maintainers; [ bcdarwin ];
|
homepage = "https://github.com/ANTsX/ANTs";
|
||||||
platforms = platforms.unix;
|
license = lib.licenses.bsd3;
|
||||||
license = licenses.bsd3;
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue