2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, unzip
|
|
|
|
, cmake
|
|
|
|
, libtiff
|
|
|
|
, expat
|
|
|
|
, zlib
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "vxl";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "3.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vxl";
|
|
|
|
repo = "vxl";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-4kMpIrywEZzt0JH95LHeDLrDneii0R/Uw9GsWkvED+E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
libtiff
|
|
|
|
expat
|
|
|
|
zlib
|
|
|
|
libpng
|
|
|
|
libjpeg
|
|
|
|
];
|
|
|
|
|
|
|
|
# test failure on aarch64-linux; unknown reason:
|
2024-09-26 11:04:55 +00:00
|
|
|
cmakeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "-DCMAKE_CTEST_ARGUMENTS='-E vgl_test_frustum_3d'" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C++ Libraries for Computer Vision Research and Implementation";
|
2023-11-16 04:20:00 +00:00
|
|
|
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 ];
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|