mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
vxl: enable tests
This commit is contained in:
parent
6cd5fb6f8b
commit
a7b3b431e9
@ -1,25 +1,50 @@
|
||||
{ lib, stdenv, fetchFromGitHub, unzip, cmake, libtiff, expat, zlib, libpng, libjpeg }:
|
||||
stdenv.mkDerivation rec {
|
||||
{ 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 = "v${version}";
|
||||
rev = "refs/tags/v${finalAttrs.version}";
|
||||
sha256 = "sha256-4kMpIrywEZzt0JH95LHeDLrDneii0R/Uw9GsWkvED+E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake unzip ];
|
||||
buildInputs = [ libtiff expat zlib libpng libjpeg ];
|
||||
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/";
|
||||
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 = with lib.maintainers; [viric];
|
||||
maintainers = with lib.maintainers; [ viric ];
|
||||
platforms = with lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user