mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
gdcm: 3.0.24 -> 3.0.25 (#410841)
This commit is contained in:
commit
a81800ccf6
2 changed files with 34 additions and 7 deletions
|
@ -0,0 +1,14 @@
|
|||
diff --git a/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestTransferSyntax.cxx b/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestTransferSyntax.cxx
|
||||
index 7ad350d..6f962ce 100644
|
||||
--- a/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestTransferSyntax.cxx
|
||||
+++ b/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestTransferSyntax.cxx
|
||||
@@ -43,6 +43,9 @@ static const int losslylosslessarray[][3] = {
|
||||
{ 1, 0, 1 }, // MPEG2MainProfileHighLevel
|
||||
{ 1, 0, 1 }, // MPEG4AVCH264HighProfileLevel4_1
|
||||
{ 1, 0, 1 }, // MPEG4AVCH264BDcompatibleHighProfileLevel4_1
|
||||
+ { 0, 1, 1 }, // HTJ2KLossless
|
||||
+ { 0, 1, 1 }, // HTJ2KRPCLLossless
|
||||
+ { 1, 0, 1 }, // HTJ2K
|
||||
};
|
||||
|
||||
static int TestTransferSyntaxAll()
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch2,
|
||||
cmake,
|
||||
enableVTK ? true,
|
||||
vtk,
|
||||
|
@ -14,19 +15,32 @@
|
|||
openjpeg,
|
||||
zlib,
|
||||
pkg-config,
|
||||
ctestCheckHook,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = if enablePython then "python-gdcm" else "gdcm";
|
||||
version = "3.0.24";
|
||||
version = "3.0.25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "malaterre";
|
||||
repo = "GDCM";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-Zlb6UCP4aFZOJJNhFQBBrwzst+f37gs1zaCBMTOUgZE=";
|
||||
hash = "sha256-PYVVlSqeAZCWvnWPqqWGQIWatMfPYqnrXc7cqi8UseU=";
|
||||
};
|
||||
|
||||
patches =
|
||||
[
|
||||
./add-missing-losslylosslessarray-in-TestTransferSyntax.patch
|
||||
]
|
||||
++ lib.optionals (lib.versionOlder vtk.version "9.3") [
|
||||
(fetchpatch2 {
|
||||
url = "https://github.com/malaterre/GDCM/commit/3be6c2fa0945c91889bcf06e8c20e88f69692dd5.patch?full_index=1";
|
||||
hash = "sha256-Yt5f4mxhP5n+L0A/CRq3CxKCqUT7LZ8uKdbCf9P71Zc=";
|
||||
revert = true;
|
||||
})
|
||||
];
|
||||
|
||||
cmakeFlags =
|
||||
[
|
||||
"-DGDCM_BUILD_APPLICATIONS=ON"
|
||||
|
@ -95,11 +109,10 @@ stdenv.mkDerivation rec {
|
|||
"TestRescaler2"
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
ctest --exclude-regex '^(${lib.concatStringsSep "|" disabledTests})$'
|
||||
runHook postCheck
|
||||
'';
|
||||
nativeCheckInputs = [
|
||||
ctestCheckHook
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
# note that when the test data is available to the build via `fetchSubmodules = true`,
|
||||
# a number of additional but much slower tests are enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue