18 , glaxnimate # Call itself, for the tests
22 # TODO: try to add a python library, see toPythonModule in doc/languages-frameworks/python.section.md
23 python3WithLibs = python3.withPackages (ps: with ps; [
24 # In data/lib/python-lottie/requirements.txt
33 # Not sure if needed, but appears in some files
39 stdenv.mkDerivation rec {
43 src = fetchFromGitLab {
47 hash = "sha256-8oHJCQdP2xxSSDM0MDkSrG89WgCtMKm1AKlddnq3gig=";
48 fetchSubmodules = true;
52 # Backport fix for newer ffmpeg
53 # FIXME: remove in next update
55 url = "https://invent.kde.org/graphics/glaxnimate/-/commit/4fb2b67a0f0ce2fbffb6fe9f87c3bf7914c8a602.patch";
56 hash = "sha256-QjCnscGa7n+zwrImA4mbQiTQb9jmDGm8Y/7TK8jZXvM=";
69 # Upstream asks for libav dependency, which is fulfilled by ffmpeg
79 # Translation needs to be separately compiled
80 # https://gitlab.com/mattbas/glaxnimate/-/issues/648
81 buildFlags = [ "translations" ];
83 qtWrapperArgs = [ ''--prefix PATH : ${python3WithLibs}/bin'' ];
85 passthru.tests.version = lib.optionalAttrs stdenv.hostPlatform.isLinux (testers.testVersion {
87 command = "${xvfb-run}/bin/xvfb-run glaxnimate --version";
91 homepage = "https://gitlab.com/mattbas/glaxnimate";
92 description = "Simple vector animation program";
93 license = licenses.gpl3;
94 maintainers = with maintainers; [ tobiasBora ];
95 mainProgram = "glaxnimate";