summary refs log tree commit diff
path: root/pkgs/tools/misc/lottieconverter/default.nix
blob: ad2721c36e3a1f270f0e0fee3324a6fceb0eb24d (plain) (blame)
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
{ lib, stdenv, fetchFromGitHub, libpng, rlottie, zlib }:

stdenv.mkDerivation rec {
  pname = "LottieConverter";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "sot-tech";
    repo = pname;
    rev = "r${version}";
    hash = "sha256-lAGzh6B2js2zDuN+1U8CZnse09RJGZRXbtmsheGKuYU=";
  };

  buildInputs = [ libpng rlottie zlib ];
  makeFlags = [ "CONF=Release" ];

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp -v dist/Release/GNU-Linux/lottieconverter $out/bin/

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/sot-tech/LottieConverter/";
    description = "Lottie converter utility";
    license = licenses.lgpl21Plus;
    platforms = platforms.all;
    maintainers = with maintainers; [ CRTified ];
    broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/lottieconverter.x86_64-darwin
  };
}