summaryrefslogtreecommitdiffstats
path: root/pkgs/kde/misc/glaxnimate/default.nix
blob: 130589b0f34f82e65f33410747ce883d63815f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
  lib,
  mkKdeDerivation,
  fetchFromGitLab,
  qttools,
  potrace,
  ffmpeg,
  libarchive,
  python3Packages,
  testers,
  glaxnimate,
  xvfb-run,
}:

mkKdeDerivation rec {
  pname = "glaxnimate";
  version = "0.6.0";

  src = fetchFromGitLab {
    domain = "invent.kde.org";
    owner = "graphics";
    repo = "glaxnimate";
    tag = "v${version}";
    fetchSubmodules = true;
    hash = "sha256-hHAe/xF6QDjiC2JqCUB1FngLsMSelMqEdHjXJwjTVjk=";
  };

  extraBuildInputs = [
    qttools
    potrace
    ffmpeg
    libarchive
    # Has vendored `qt-color-widgets` and `pybind11`.
  ];

  qtWrapperArgs = [
    "--prefix PYTHONPATH : ${
      python3Packages.makePythonPath [
        python3Packages.pillow
        python3Packages.lottie
      ]
    }"
  ];

  passthru.tests.version = testers.testVersion {
    package = glaxnimate;
    command = "${lib.getExe xvfb-run} glaxnimate --version";
  };

  meta = {
    homepage = "https://glaxnimate.org/";
    license = with lib.licenses; [
      bsd2
      cc-by-sa-40
      cc0
      gpl2Plus
      gpl3Plus
      unicodeTOU
    ];
    maintainers = [ lib.maintainers.tobiasBora ];
    mainProgram = "glaxnimate";
  };
}