Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, swig4, lua, itk }: 2 3stdenv.mkDerivation rec { 4 pname = "simpleitk"; 5 version = "2.2.1"; 6 7 src = fetchFromGitHub { 8 owner = "SimpleITK"; 9 repo = "SimpleITK"; 10 rev = "refs/tags/v${version}"; 11 hash = "sha256-0YxmixUTXpjegZQv7DDCNTWFTH8QEWqQQszee7aQ5EI="; 12 }; 13 14 nativeBuildInputs = [ cmake swig4 ]; 15 buildInputs = [ lua itk ]; 16 17 # 2.0.0: linker error building examples 18 cmakeFlags = [ "-DBUILD_EXAMPLES=OFF" "-DBUILD_SHARED_LIBS=ON" ]; 19 20 meta = with lib; { 21 homepage = "https://www.simpleitk.org"; 22 description = "Simplified interface to ITK"; 23 maintainers = with maintainers; [ bcdarwin ]; 24 platforms = platforms.linux; 25 license = licenses.asl20; 26 }; 27}