2021-11-07 13:50:48 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2019-02-08 22:41:14 +00:00
|
|
|
|
2021-11-07 13:50:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cmtk";
|
|
|
|
version = "3.3.1";
|
2019-02-08 22:41:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "cmtk-source.tar.gz";
|
2021-11-07 13:50:48 +00:00
|
|
|
url = "https://www.nitrc.org/frs/download.php/8198/CMTK-${version}-Source.tar.gz//?i_agree=1&download_now=1";
|
2019-02-08 22:41:14 +00:00
|
|
|
sha256 = "1nmsga9m7vcc4y4a6zl53ra3mwlgjwdgsq1j291awkn7zr1az6qs";
|
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-02-08 22:41:14 +00:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
2019-04-23 03:36:35 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-11-07 13:50:48 +00:00
|
|
|
description = "Computational Morphometry Toolkit ";
|
2019-02-08 22:41:14 +00:00
|
|
|
longDescription = ''A software toolkit for computational morphometry of
|
|
|
|
biomedical images, CMTK comprises a set of command line tools and a
|
|
|
|
back-end general-purpose library for processing and I/O'';
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
|
|
|
platforms = platforms.all;
|
2021-11-07 13:50:48 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = "https://www.nitrc.org/projects/cmtk/";
|
2019-02-08 22:41:14 +00:00
|
|
|
};
|
|
|
|
}
|