mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
27 lines
920 B
Nix
27 lines
920 B
Nix
{lib, stdenv, fetchurl, cmake}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "cmtk-3.3.1";
|
|
|
|
src = fetchurl {
|
|
name = "cmtk-source.tar.gz";
|
|
url = "https://www.nitrc.org/frs/download.php/8198/CMTK-3.3.1-Source.tar.gz//?i_agree=1&download_now=1";
|
|
sha256 = "1nmsga9m7vcc4y4a6zl53ra3mwlgjwdgsq1j291awkn7zr1az6qs";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
|
|
|
meta = with lib; {
|
|
description = "Computational Morphometry Toolkit ";
|
|
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;
|
|
license = licenses.gpl3;
|
|
homepage = "https://www.nitrc.org/projects/cmtk/";
|
|
};
|
|
}
|