about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorTobias Bora <tobias.bora@gmail.com>2023-01-09 10:38:26 +0100
committerManuel Bärenz <programming@manuelbaerenz.de>2023-01-09 12:57:15 +0100
commit3be80fbf1fc961a7e1cd142bbfdb4edb2f3b5553 (patch)
tree2e8da59f6e6715d569dafcad707ba115435dadfa /pkgs/applications/video
parentd243b132ad7f1bc2d9afd8b114bf2be2025df68f (diff)
Glaxnimate: fix plugins and export to gif
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/glaxnimate/default.nix32
1 files changed, 28 insertions, 4 deletions
diff --git a/pkgs/applications/video/glaxnimate/default.nix b/pkgs/applications/video/glaxnimate/default.nix
index 7d42156b89777..7e6339813f743 100644
--- a/pkgs/applications/video/glaxnimate/default.nix
+++ b/pkgs/applications/video/glaxnimate/default.nix
@@ -11,9 +11,28 @@
 , qttools
 , wrapQtAppsHook
 , testers
-, glaxnimate
+, qtsvg
+, qtimageformats
+, glaxnimate # Call itself, for the tests
 }:
-
+let
+  # TODO: try to add a python library, see toPythonModule in doc/languages-frameworks/python.section.md
+  python3WithLibs = python3.withPackages (ps: with ps; [
+    # In data/lib/python-lottie/requirements.txt
+    numpy
+    pillow
+    cairosvg
+    fonttools
+    grapheme
+    opencv4
+    pyqt5
+    qscintilla
+    # Not sure if needed, but appears in some files
+    pyyaml
+    requests
+    pybind11
+  ]);
+in
 stdenv.mkDerivation rec {
   pname = "glaxnimate";
   version = "0.5.1";
@@ -36,15 +55,20 @@ stdenv.mkDerivation rec {
     # Upstream asks for libav dependency, which is fulfilled by ffmpeg
     ffmpeg
     libarchive
-    python3
     qtbase
     qttools
+    qtsvg
+    qtimageformats
+    python3WithLibs
   ];
 
-passthru.tests.version = testers.testVersion {
+  qtWrapperArgs = [ ''--prefix PATH : ${python3WithLibs}/bin'' ];
+  
+  passthru.tests.version = testers.testVersion {
     package = glaxnimate;
     command = "glaxnimate --version";
   };
+
   meta = with lib; {
     homepage = "https://gitlab.com/mattbas/glaxnimate";
     description = "Simple vector animation program.";