aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/itk/4.x.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/itk/4.x.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/itk/4.x.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/libraries/itk/4.x.nix b/nixpkgs/pkgs/development/libraries/itk/4.x.nix
index cd8e70a9976..112b77650d2 100644
--- a/nixpkgs/pkgs/development/libraries/itk/4.x.nix
+++ b/nixpkgs/pkgs/development/libraries/itk/4.x.nix
@@ -1,11 +1,14 @@
-{ stdenv, fetchurl, cmake, libX11, libuuid, xz, vtk_7 }:
+{ stdenv, fetchFromGitHub, cmake, libX11, libuuid, xz, vtk_7, Cocoa }:
stdenv.mkDerivation rec {
- name = "itk-4.13.2";
+ pname = "itk";
+ version = "4.13.3";
- src = fetchurl {
- url = "mirror://sourceforge/itk/InsightToolkit-4.13.2.tar.xz";
- sha256 = "19cgfpd63gqrvc3m27m394gy2d7w79g5y6lvznb5qqr49lihbgns";
+ src = fetchFromGitHub {
+ owner = "InsightSoftwareConsortium";
+ repo = "ITK";
+ rev = "v${version}";
+ sha256 = "067vkh39jxcvyvn69qjh4vi3wa7vdvm9m6qsg3jmnmm7gzw0kjlm";
};
cmakeFlags = [
@@ -22,11 +25,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
nativeBuildInputs = [ cmake xz ];
- buildInputs = [ libX11 libuuid vtk_7 ];
+ buildInputs = [ libX11 libuuid vtk_7 ] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
meta = {
description = "Insight Segmentation and Registration Toolkit";
- homepage = "http://www.itk.org/";
+ homepage = "https://www.itk.org/";
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux ++ darwin;