nixpkgs/pkgs/by-name/dc/dcmtk/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

35 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, zlib, libtiff, libxml2, openssl, libiconv
, libpng, cmake }:
stdenv.mkDerivation rec {
pname = "dcmtk";
version = "3.6.8";
src = fetchFromGitHub {
owner = "DCMTK";
repo = pname;
rev = "DCMTK-${version}";
hash = "sha256-PQR9+xSlfBvogv0p6AL/yapelJpsYteA4T4lPkOIfLc=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libpng zlib libtiff libxml2 openssl libiconv ];
doCheck = true;
meta = with lib; {
description =
"Collection of libraries and applications implementing large parts of the DICOM standard";
longDescription = ''
DCMTK is a collection of libraries and applications implementing large parts of the DICOM standard.
It includes software for examining, constructing and converting DICOM image files, handling offline media,
sending and receiving images over a network connection, as well as demonstrative image storage and worklist servers.
DCMTK is is written in a mixture of ANSI C and C++.
It comes in complete source code and is made available as "open source" software.
'';
homepage = "https://dicom.offis.de/dcmtk";
license = licenses.bsd3;
maintainers = with maintainers; [ iimog ];
platforms = with platforms; linux ++ darwin;
};
}