about summary refs log tree commit diff
path: root/pkgs/development/libraries/vxl/default.nix
blob: b7173ed93701b3e3ba43f0000834316dac8f1978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib
, stdenv
, fetchFromGitHub
, unzip
, cmake
, libtiff
, expat
, zlib
, libpng
, libjpeg
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "vxl";
  version = "3.5.0";

  src = fetchFromGitHub {
    owner = "vxl";
    repo = "vxl";
    rev = "refs/tags/v${finalAttrs.version}";
    sha256 = "sha256-4kMpIrywEZzt0JH95LHeDLrDneii0R/Uw9GsWkvED+E=";
  };

  nativeBuildInputs = [
    cmake
    unzip
  ];
  buildInputs = [
    libtiff
    expat
    zlib
    libpng
    libjpeg
  ];

  # test failure on aarch64-linux; unknown reason:
  cmakeFlags = lib.optionals stdenv.isAarch64 [ "-DCMAKE_CTEST_ARGUMENTS='-E vgl_test_frustum_3d'" ];

  doCheck = true;

  meta = {
    description = "C++ Libraries for Computer Vision Research and Implementation";
    homepage = "https://vxl.sourceforge.net";
    # license appears contradictory; see https://github.com/vxl/vxl/issues/752
    # (and see https://github.com/InsightSoftwareConsortium/ITK/pull/1920/files for potential patch)
    license = [ lib.licenses.unfree ];
    maintainers = [ ];
    platforms = with lib.platforms; linux;
  };
})