64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{
|
|
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";
|
|
};
|
|
}
|