From 28a8a3af60f2af13fb5a420c83e128f1b4961d52 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 27 Nov 2024 16:53:33 +0800 Subject: [PATCH] ovito: 3.11.0 -> 3.11.1 --- pkgs/applications/graphics/ovito/default.nix | 6 ++++-- pkgs/applications/graphics/ovito/zstd.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 pkgs/applications/graphics/ovito/zstd.patch diff --git a/pkgs/applications/graphics/ovito/default.nix b/pkgs/applications/graphics/ovito/default.nix index aba7f561fbb69..fe34bdf401ba6 100644 --- a/pkgs/applications/graphics/ovito/default.nix +++ b/pkgs/applications/graphics/ovito/default.nix @@ -26,14 +26,16 @@ stdenv.mkDerivation rec { pname = "ovito"; - version = "3.11.0"; + version = "3.11.1"; src = fetchFromGitLab { owner = "stuko"; repo = "ovito"; rev = "v${version}"; - hash = "sha256-egiA6z1e8ZS7i4CIVjsCKJP1wQSRpmSKitoVTszu0Mc="; + hash = "sha256-ulzcsFAiZDg8nABQXNB2/MS7lZdK3czGHLKgKDWS15E="; + fetchSubmodules = true; }; + patches = [ ./zstd.patch ]; nativeBuildInputs = [ cmake diff --git a/pkgs/applications/graphics/ovito/zstd.patch b/pkgs/applications/graphics/ovito/zstd.patch new file mode 100644 index 0000000000000..f5a9ce28ee09a --- /dev/null +++ b/pkgs/applications/graphics/ovito/zstd.patch @@ -0,0 +1,13 @@ +diff --git a/src/ovito/core/CMakeLists.txt b/src/ovito/core/CMakeLists.txt +index 1b49746a6..7fda02bf4 100755 +--- a/src/ovito/core/CMakeLists.txt ++++ b/src/ovito/core/CMakeLists.txt +@@ -188,7 +188,7 @@ IF(ZLIB_FOUND) + IF(OVITO_BUILD_CONDA) + TARGET_LINK_LIBRARIES(Core PUBLIC zstd::libzstd) + ELSE() +- TARGET_LINK_LIBRARIES(Core PUBLIC zstd::libzstd_static) ++ TARGET_LINK_LIBRARIES(Core PUBLIC zstd::libzstd) + ENDIF() + # Build the zstd zlib-wrapper source files. + TARGET_INCLUDE_DIRECTORIES(Core PUBLIC "$")