2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cmtk";
|
|
|
|
version = "3.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "cmtk-source.tar.gz";
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://www.nitrc.org/frs/download.php/8198/CMTK-${version}-Source.tar.gz//?i_agree=1&download_now=1";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1nmsga9m7vcc4y4a6zl53ra3mwlgjwdgsq1j291awkn7zr1az6qs";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Computational Morphometry Toolkit ";
|
2020-04-24 23:36:52 +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-12-06 16:07:01 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = "https://www.nitrc.org/projects/cmtk/";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|