lib3mf: 2.3.2 -> 2.4.1, fix build, add updateScript

Hydra failure: https://hydra.nixos.org/build/301834239

release notes: https://github.com/3MFConsortium/lib3mf/releases/tag/v2.4.1
This commit is contained in:
Grimmauld 2025-07-11 17:29:53 +02:00
parent de7b147666
commit 49b9448e9c
No known key found for this signature in database

View File

@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
ninja,
automaticcomponenttoolkit,
@ -12,19 +13,35 @@
openssl,
libuuid,
zlib,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "lib3mf";
version = "2.3.2";
version = "2.4.1";
src = fetchFromGitHub {
owner = "3MFConsortium";
repo = "lib3mf";
tag = "v${version}";
hash = "sha256-XEwrJINiNpI2+1wXxczirci8VJsUVs5iDUAMS6jWuNk=";
hash = "sha256-wq/dT/8m+em/qFoNNj6s5lyx/MgNeEBGSMBpuJiORqA=";
};
patches = [
# some patches are required for the gcc 14 source build
# remove next release
# https://github.com/3MFConsortium/lib3mf/pull/413
(fetchpatch {
url = "https://github.com/3MFConsortium/lib3mf/pull/413/commits/96b2f5ec9714088907fe8a6f05633e2bbd82053f.patch?full_index=1";
hash = "sha256-cJRc+SW1/6Ypf2r34yroVTxu4NMJWuoSmzsmoXogrUk=";
})
# https://github.com/3MFConsortium/lib3mf/pull/421
(fetchpatch {
url = "https://github.com/3MFConsortium/lib3mf/pull/421/commits/6d7b5709a4a1cf9bd55ae8b4ae999c9ca014f62c.patch?full_index=1";
hash = "sha256-rGOyXZUZglRNMu1/oVhgSpRdi0pUa/wn5SFHCS9jVOY=";
})
];
nativeBuildInputs = [
cmake
ninja
@ -79,6 +96,8 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Reference implementation of the 3D Manufacturing Format file standard";
homepage = "https://3mf.io/";