summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-11-20 18:52:37 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-11-20 18:52:37 -0300
commit419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8 (patch)
tree366f0c1216cf262c2e1d173ac83835f97119c02e
parent1b71b2b8fe01d7942cf59bdaf81df3b03c08d08e (diff)
downloadnixpkgs-419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8.tar
nixpkgs-419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8.tar.gz
nixpkgs-419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8.tar.bz2
nixpkgs-419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8.tar.lz
nixpkgs-419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8.tar.xz
nixpkgs-419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8.tar.zst
nixpkgs-419e261c1b1a9593cf2b8afcecd0f5c0e4b3e7e8.zip
openshot-qt: update dependencies
Because the old pyqt5-with-webkit depends on an old, buggy, full of CVEs WebKit
implementation.
-rw-r--r--pkgs/applications/video/openshot-qt/default.nix37
1 files changed, 18 insertions, 19 deletions
diff --git a/pkgs/applications/video/openshot-qt/default.nix b/pkgs/applications/video/openshot-qt/default.nix
index c94dc643daa..5d8b68200de 100644
--- a/pkgs/applications/video/openshot-qt/default.nix
+++ b/pkgs/applications/video/openshot-qt/default.nix
@@ -6,12 +6,12 @@
 , doxygen
 , gtk3
 , libopenshot
-, python3Packages
+, python3
 , qtsvg
 , wrapGAppsHook
 }:
 
-mkDerivationWith python3Packages.buildPythonApplication rec {
+mkDerivationWith python3.pkgs.buildPythonApplication rec {
   pname = "openshot-qt";
   version = "2.6.1";
 
@@ -19,7 +19,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
     owner = "OpenShot";
     repo = "openshot-qt";
     rev = "v${version}";
-    sha256 = "0pa8iwl217503bjlqg2zlrw5lxyq5hvxrf5apxrh3843hj1w1myv";
+    hash = "sha256-29fAg4SDoAFzv6q43Dcs2HdaeKZfPEzlGqCcICiPSF0=";
   };
 
   nativeBuildInputs = [
@@ -31,18 +31,15 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
     gtk3
   ];
 
-  propagatedBuildInputs = with python3Packages; [
+  propagatedBuildInputs = with python3.pkgs; [
     httplib2
     libopenshot
-    pyqt5_with_qtwebkit
+    pyqtwebengine
     pyzmq
     requests
     sip_4
   ];
 
-  dontWrapGApps = true;
-  dontWrapQtApps = true;
-
   preConfigure = ''
     # tries to create caching directories during install
     export HOME=$(mktemp -d)
@@ -64,19 +61,26 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
     })
   ];
 
+  doCheck = false;
+
+  dontWrapGApps = true;
+  dontWrapQtApps = true;
+
   postFixup = ''
     wrapProgram $out/bin/openshot-qt \
   ''
   # Fix toolbar icons on Darwin
   + lib.optionalString stdenv.isDarwin ''
-      --suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/lib/qt-5.12.7/plugins" \
-  ''
-  + ''
-      "''${gappsWrapperArgs[@]}" \
-      "''${qtWrapperArgs[@]}"
+    --suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/lib/qt-5.12.7/plugins" \
+  '' + ''
+    "''${gappsWrapperArgs[@]}" \
+    "''${qtWrapperArgs[@]}"
   '';
 
-  doCheck = false;
+  passthru = {
+    inherit libopenshot;
+    inherit (libopenshot) libopenshot-audio;
+  };
 
   meta = with lib; {
     homepage = "http://openshot.org/";
@@ -92,9 +96,4 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
     maintainers = with maintainers; [ AndersonTorres ];
     platforms = with platforms; unix;
   };
-
-  passthru = {
-    inherit libopenshot;
-    inherit (libopenshot) libopenshot-audio;
-  };
 }