19 glaxnimate, # Call itself, for the tests
23 # TODO: try to add a python library, see toPythonModule in doc/languages-frameworks/python.section.md
24 python3WithLibs = python3.withPackages (
26 # In data/lib/python-lottie/requirements.txt
35 # Not sure if needed, but appears in some files
42 stdenv.mkDerivation rec {
46 src = fetchFromGitLab {
50 hash = "sha256-8oHJCQdP2xxSSDM0MDkSrG89WgCtMKm1AKlddnq3gig=";
51 fetchSubmodules = true;
55 # Backport fix for newer ffmpeg
56 # FIXME: remove in next update
58 url = "https://invent.kde.org/graphics/glaxnimate/-/commit/4fb2b67a0f0ce2fbffb6fe9f87c3bf7914c8a602.patch";
59 hash = "sha256-QjCnscGa7n+zwrImA4mbQiTQb9jmDGm8Y/7TK8jZXvM=";
72 # Upstream asks for libav dependency, which is fulfilled by ffmpeg
82 # Translation needs to be separately compiled
83 # https://gitlab.com/mattbas/glaxnimate/-/issues/648
84 buildFlags = [ "translations" ];
86 qtWrapperArgs = [ ''--prefix PATH : ${python3WithLibs}/bin'' ];
88 passthru.tests.version = lib.optionalAttrs stdenv.hostPlatform.isLinux (
91 command = "${xvfb-run}/bin/xvfb-run glaxnimate --version";
96 homepage = "https://gitlab.com/mattbas/glaxnimate";
97 description = "Simple vector animation program";
98 license = licenses.gpl3;
99 maintainers = with maintainers; [ tobiasBora ];
100 mainProgram = "glaxnimate";