lol

python3Packages.libarcus: fix build against protobuf 3.18+

Still needs upstream resolution,
but we can grab a Vcpkg patch in the meantime

+11 -1
+11 -1
pkgs/development/python-modules/libarcus/default.nix
··· 1 1 { lib, buildPythonPackage, python, fetchFromGitHub 2 + , fetchpatch 2 3 , cmake, sip_4, protobuf, pythonOlder }: 3 4 4 5 buildPythonPackage rec { ··· 13 14 sha256 = "1ahka8s8fjwymyr7pca7i7h51ikfr35zy4nkzfcjn946x7p0dprf"; 14 15 }; 15 16 16 - disabled = pythonOlder "3.4.0"; 17 + patches = [ 18 + # Fix build against protobuf 3.18+ 19 + # https://github.com/Ultimaker/libArcus/issues/121 20 + (fetchpatch { 21 + url = "https://raw.githubusercontent.com/coryan/vcpkg/f69b85aa403b04e7d442c90db3418d484e44024f/ports/arcus/0001-fix-protobuf-deprecated.patch"; 22 + sha256 = "0bqj7pxzpwsamknd6gadj419x6mwx8wnlfzg4zqn6cax3cmasjb2"; 23 + }) 24 + ]; 25 + 26 + disabled = pythonOlder "3.4"; 17 27 18 28 propagatedBuildInputs = [ sip_4 ]; 19 29 nativeBuildInputs = [ cmake ];