summary refs log tree commit diff
diff options
context:
space:
mode:
authorAustin Butler <austinabutler@gmail.com>2022-11-15 00:04:27 -0800
committerAustin Butler <austinabutler@gmail.com>2022-11-15 00:04:27 -0800
commit76085e2232eb58df477274350cac10b4bdabb920 (patch)
tree38605cad4df2a10f121f33a31c51b15909d9f2a5
parent1c0e5784d7a9e88f75781305eea2def5c31e47d7 (diff)
downloadnixpkgs-76085e2232eb58df477274350cac10b4bdabb920.tar
nixpkgs-76085e2232eb58df477274350cac10b4bdabb920.tar.gz
nixpkgs-76085e2232eb58df477274350cac10b4bdabb920.tar.bz2
nixpkgs-76085e2232eb58df477274350cac10b4bdabb920.tar.lz
nixpkgs-76085e2232eb58df477274350cac10b4bdabb920.tar.xz
nixpkgs-76085e2232eb58df477274350cac10b4bdabb920.tar.zst
nixpkgs-76085e2232eb58df477274350cac10b4bdabb920.zip
openshot-qt: fix Python 3.10 incompatibility
-rw-r--r--pkgs/applications/video/openshot-qt/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/applications/video/openshot-qt/default.nix b/pkgs/applications/video/openshot-qt/default.nix
index bb6bfa637ce..c94dc643daa 100644
--- a/pkgs/applications/video/openshot-qt/default.nix
+++ b/pkgs/applications/video/openshot-qt/default.nix
@@ -2,6 +2,7 @@
 , stdenv
 , mkDerivationWith
 , fetchFromGitHub
+, fetchpatch
 , doxygen
 , gtk3
 , libopenshot
@@ -47,6 +48,22 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
     export HOME=$(mktemp -d)
   '';
 
+  # Following Arch PKGBUILD for Python 3.10 compatibility
+  # https://github.com/OpenShot/openshot-qt/issues/4608
+  # https://github.com/archlinux/svntogit-community/commits/packages/openshot/trunk
+  patches = [
+    (fetchpatch {
+      name = "video-widget.patch";
+      url = "https://github.com/OpenShot/openshot-qt/commit/9748a13268d66a5949aebc970637b5903756d018.patch";
+      hash = "sha256-QwLtcooDJeYWDp80a1dUFo2so/zEWqqsq5IgkXWX324=";
+    })
+    (fetchpatch {
+      name = "python-3.10-int.patch";
+      url = "https://github.com/OpenShot/openshot-qt/commit/fff785eb1e3e0c30ed6ca57e2d1933aaa807ae22.patch";
+      hash = "sha256-ee/s7rhF71ot5oPkGK+j59mL1B3e72xoH27KFoDL8s8=";
+    })
+  ];
+
   postFixup = ''
     wrapProgram $out/bin/openshot-qt \
   ''