acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / vx / vxl / package.nix
blob9ee55b47d4574bceacf39812ed13576ba76d8f6f
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , unzip
5 , cmake
6 , libtiff
7 , expat
8 , zlib
9 , libpng
10 , libjpeg
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "vxl";
15   version = "3.5.0";
17   src = fetchFromGitHub {
18     owner = "vxl";
19     repo = "vxl";
20     rev = "refs/tags/v${finalAttrs.version}";
21     sha256 = "sha256-4kMpIrywEZzt0JH95LHeDLrDneii0R/Uw9GsWkvED+E=";
22   };
24   nativeBuildInputs = [
25     cmake
26     unzip
27   ];
28   buildInputs = [
29     libtiff
30     expat
31     zlib
32     libpng
33     libjpeg
34   ];
36   # test failure on aarch64-linux; unknown reason:
37   cmakeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "-DCMAKE_CTEST_ARGUMENTS='-E vgl_test_frustum_3d'" ];
39   doCheck = true;
41   meta = {
42     description = "C++ Libraries for Computer Vision Research and Implementation";
43     homepage = "https://vxl.sourceforge.net";
44     # license appears contradictory; see https://github.com/vxl/vxl/issues/752
45     # (and see https://github.com/InsightSoftwareConsortium/ITK/pull/1920/files for potential patch)
46     license = [ lib.licenses.unfree ];
47     maintainers = [ ];
48     platforms = with lib.platforms; linux;
49   };