Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 unzip, 6 cmake, 7 libtiff, 8 expat, 9 zlib, 10 libpng, 11 libjpeg, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "vxl"; 16 version = "3.5.0"; 17 18 src = fetchFromGitHub { 19 owner = "vxl"; 20 repo = "vxl"; 21 tag = "v${finalAttrs.version}"; 22 sha256 = "sha256-4kMpIrywEZzt0JH95LHeDLrDneii0R/Uw9GsWkvED+E="; 23 }; 24 25 nativeBuildInputs = [ 26 cmake 27 unzip 28 ]; 29 buildInputs = [ 30 libtiff 31 expat 32 zlib 33 libpng 34 libjpeg 35 ]; 36 37 # test failure on aarch64-linux; unknown reason: 38 cmakeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ 39 "-DCMAKE_CTEST_ARGUMENTS='-E vgl_test_frustum_3d'" 40 ]; 41 42 doCheck = true; 43 44 meta = { 45 description = "C++ Libraries for Computer Vision Research and Implementation"; 46 homepage = "https://vxl.sourceforge.net"; 47 # license appears contradictory; see https://github.com/vxl/vxl/issues/752 48 # (and see https://github.com/InsightSoftwareConsortium/ITK/pull/1920/files for potential patch) 49 license = [ lib.licenses.unfree ]; 50 maintainers = [ ]; 51 platforms = with lib.platforms; linux; 52 }; 53})