Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glaxnimate #208707

Closed
hervyqa opened this issue Jan 2, 2023 · 13 comments · Fixed by #209669
Closed

glaxnimate #208707

hervyqa opened this issue Jan 2, 2023 · 13 comments · Fixed by #209669

Comments

@hervyqa
Copy link

hervyqa commented Jan 2, 2023

Project description

simple and fast vector graphics animation program. glaxnimate works with vector graphics, this means images are described with objects like lines, curves, and points.

img

Metadata

@Schweber
Copy link
Contributor

Schweber commented Jan 7, 2023

kdenlive shows

Missing MLT module: glaxnimate
required to load Lottie animations

on Nixos 22.11. It still works but it would be nice to have glaxnimate available.

@turion Is it possible to package glaxnimate and include it in kdenlive?

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/kdenlive-missing-mlt-module-glaxnimate/24486/3

@tobiasBora
Copy link
Contributor

Just can up with this

{ lib
, stdenv
, fetchFromGitLab
, cmake
, zlib
, potrace
, ffmpeg
, libarchive
, python3
, full
, wrapQtAppsHook
  # Python3
}:

stdenv.mkDerivation rec {
  pname = "glaxnimate";
  version = "0.5.1";

  src = fetchFromGitLab {
    owner = "mattbas";
    repo = "${pname}";
    rev = "${version}";
    sha256 = "G4ykcOvXXnVIQZUYpRIrALtDSsGqxMvDtcmobjjtlKw=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    cmake
    wrapQtAppsHook
  ];
  
  buildInputs = [
    zlib
    potrace
    ffmpeg
    # gst_all_1.gst-libav # Note that since gst-libav-1.6, libav is actually ffmpeg
    libarchive
    python3
    full    
  ];

  meta = with lib; {
    homepage = "https://gitlab.com/mattbas/glaxnimate";
    description = "Simple vector animation program.";
    license = licenses.gpl3;
    maintainers = with maintainers; [ tobiasBora ];
    platforms = platforms.linux;
  };
}

it works but when I integrate it in nixpkgs I get an error about

Package ‘qtwebkit-5.212.0-alpha4’ in /home/leo/nixpkgs/pkgs/development/libraries/qt-5/qtModule.nix:72 is marked as insecure, refusing to evaluate.

so I need to investigate

@Schweber
Copy link
Contributor

Schweber commented Jan 8, 2023

Thank you for your effort!

it works but when I integrate it in nixpkgs I get an error about

Package ‘qtwebkit-5.212.0-alpha4’ in /home/leo/nixpkgs/pkgs/development/libraries/qt-5/qtModule.nix:72 is marked as insecure, refusing to evaluate.

so I need to investigate

You can override that with nixpkgs.config.permittedInsecurePackages = [ "qtwebkit-5.212.0-alpha4" ];.

Unfortunately, this package is compiled locally and takes quite a while. I don't know why it's not built by hydra.

@turion
Copy link
Contributor

turion commented Jan 8, 2023

👍 for adding glaxnimate. It looks like a sane program that can be packaged without headaches.

It's weird that qtwebkit is pulled in here. qtwebkit is insecure afaik and shouldn't be used anymore. See #53079. And it seems to me that glaxnimate doesn't need qtwebkit, so it's added as a transitive dependency somehow.

@tobiasBora
Copy link
Contributor

Qtwebkis just go added because I used qtfull instead of manually adding the libraries one by one.

But please test the program in #209669 as I don't know how to test it beside runnig it. In particular the python stuff might need some wrapping but no idea/time how to test it.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/kdenlive-missing-mlt-module-glaxnimate/24486/4

@turion
Copy link
Contributor

turion commented Jan 9, 2023

kdenlive shows

Missing MLT module: glaxnimate
required to load Lottie animations

on Nixos 22.11. It still works but it would be nice to have glaxnimate available.

Can you give more details on how to reproduce? I can't see this error. Do I have to do anything special to trigger it?

@turion turion reopened this Jan 9, 2023
@turion turion closed this as completed Jan 9, 2023
@turion
Copy link
Contributor

turion commented Jan 9, 2023

(Ideally, as a separate issue.)

@hervyqa
Copy link
Author

hervyqa commented Jan 9, 2023

hi @turion. how do i know if this pkgs status goes into repo 22.11?

@turion
Copy link
Contributor

turion commented Jan 9, 2023

You can use git for example. There is also a webservice: https://nixpk.gs/pr-tracker.html You have to enter the number of the PR there.

@Schweber
Copy link
Contributor

Schweber commented Jan 9, 2023

Can you give more details on how to reproduce? I can't see this error. Do I have to do anything special to trigger it?

@turion It happened when launching kdenlive for the first time i.e. without config files in my home directory. Then it apparently registered that i acknowledged the message and didn't show it again. It was a message window that had to be acknowledged with "ok" or something like that. No fatal error, just an information.

I think that kdenlive is working correctly in this regard and that i shouldn't file an issue about that.

@tobiasBora
Copy link
Contributor

Oh very true… I just tried by doing

$ mkdir /tmp/home
$ export HOME=/tmp/home
$ nix run github:NixOs/nixpkgs/0c9aadc8eff6daaa5149d2df9e6c49baaf44161c#kdenlive

image

I created an issue here #209923

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants