nixpkgs/pkgs/development/libraries/simpleitk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
726 B
Nix
Raw Normal View History

2022-12-20 01:20:33 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, swig4, lua, itk }:
stdenv.mkDerivation rec {
pname = "simpleitk";
2022-12-20 01:20:33 +00:00
version = "2.2.1";
src = fetchFromGitHub {
owner = "SimpleITK";
repo = "SimpleITK";
rev = "refs/tags/v${version}";
2022-12-20 01:20:33 +00:00
hash = "sha256-0YxmixUTXpjegZQv7DDCNTWFTH8QEWqQQszee7aQ5EI=";
};
2021-12-23 19:15:09 +00:00
nativeBuildInputs = [ cmake swig4 ];
2022-12-20 01:20:33 +00:00
buildInputs = [ lua itk ];
2020-09-23 18:51:15 +00:00
# 2.0.0: linker error building examples
cmakeFlags = [ "-DBUILD_EXAMPLES=OFF" "-DBUILD_SHARED_LIBS=ON" ];
meta = with lib; {
2020-09-23 18:51:15 +00:00
homepage = "https://www.simpleitk.org";
description = "Simplified interface to ITK";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.linux;
license = licenses.asl20;
};
}