1{ lib
2, stdenv
3, fetchFromGitHub
4, unzip
5, cmake
6, libtiff
7, expat
8, zlib
9, libpng
10, libjpeg
11}:
12
13stdenv.mkDerivation (finalAttrs: {
14 pname = "vxl";
15 version = "3.5.0";
16
17 src = fetchFromGitHub {
18 owner = "vxl";
19 repo = "vxl";
20 rev = "refs/tags/v${finalAttrs.version}";
21 sha256 = "sha256-4kMpIrywEZzt0JH95LHeDLrDneii0R/Uw9GsWkvED+E=";
22 };
23
24 nativeBuildInputs = [
25 cmake
26 unzip
27 ];
28 buildInputs = [
29 libtiff
30 expat
31 zlib
32 libpng
33 libjpeg
34 ];
35
36 # test failure on aarch64-linux; unknown reason:
37 cmakeFlags = lib.optionals stdenv.isAarch64 [ "-DCMAKE_CTEST_ARGUMENTS='-E vgl_test_frustum_3d'" ];
38
39 doCheck = true;
40
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 = with lib.maintainers; [ viric ];
48 platforms = with lib.platforms; linux;
49 };
50})