lib3mf: 2.3.2 -> 2.4.1, fix build, add updateScript (#424347)

authored by K900 and committed by GitHub 10b60fa6 21e18ff9

+25 -5
+25 -5
pkgs/by-name/li/lib3mf/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchFromGitHub, 5 + fetchpatch, 5 6 cmake, 6 7 ninja, 7 8 automaticcomponenttoolkit, ··· 12 13 openssl, 13 14 libuuid, 14 15 zlib, 16 + nix-update-script, 15 17 }: 16 18 17 - stdenv.mkDerivation rec { 19 + stdenv.mkDerivation (finalAttrs: { 18 20 pname = "lib3mf"; 19 - version = "2.3.2"; 21 + version = "2.4.1"; 20 22 21 23 src = fetchFromGitHub { 22 24 owner = "3MFConsortium"; 23 25 repo = "lib3mf"; 24 - tag = "v${version}"; 25 - hash = "sha256-XEwrJINiNpI2+1wXxczirci8VJsUVs5iDUAMS6jWuNk="; 26 + tag = "v${finalAttrs.version}"; 27 + hash = "sha256-wq/dT/8m+em/qFoNNj6s5lyx/MgNeEBGSMBpuJiORqA="; 26 28 }; 29 + 30 + patches = [ 31 + # some patches are required for the gcc 14 source build 32 + # remove next release 33 + # https://github.com/3MFConsortium/lib3mf/pull/413 34 + (fetchpatch { 35 + url = "https://github.com/3MFConsortium/lib3mf/pull/413/commits/96b2f5ec9714088907fe8a6f05633e2bbd82053f.patch?full_index=1"; 36 + hash = "sha256-cJRc+SW1/6Ypf2r34yroVTxu4NMJWuoSmzsmoXogrUk="; 37 + }) 38 + # https://github.com/3MFConsortium/lib3mf/pull/421 39 + (fetchpatch { 40 + url = "https://github.com/3MFConsortium/lib3mf/pull/421/commits/6d7b5709a4a1cf9bd55ae8b4ae999c9ca014f62c.patch?full_index=1"; 41 + hash = "sha256-rGOyXZUZglRNMu1/oVhgSpRdi0pUa/wn5SFHCS9jVOY="; 42 + }) 43 + ]; 27 44 28 45 nativeBuildInputs = [ 29 46 cmake ··· 79 96 80 97 doCheck = true; 81 98 99 + passthru.updateScript = nix-update-script { }; 100 + 82 101 meta = with lib; { 102 + changelog = "https://github.com/3MFConsortium/lib3mf/releases/tag/${finalAttrs.src.tag}"; 83 103 description = "Reference implementation of the 3D Manufacturing Format file standard"; 84 104 homepage = "https://3mf.io/"; 85 105 license = licenses.bsd2; 86 106 maintainers = with maintainers; [ ]; 87 107 platforms = platforms.all; 88 108 }; 89 - } 109 + })