acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / lo / lottieconverter / package.nix
blobd09088065a3b427ba45ae38e5b0b5a8f7f194df1
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , libpng
6 , rlottie
7 , giflib
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "lottieconverter";
12   version = "0.2";
14   src = fetchFromGitHub {
15     owner = "sot-tech";
16     repo = "lottieconverter";
17     rev = "r${finalAttrs.version}";
18     hash = "sha256-oCFQsOQbWzmzClaTOeuEtGo7uXoKYtaJuSLLgqAQP1M=";
19   };
21   nativeBuildInputs = [ cmake ];
22   buildInputs = [ libpng rlottie giflib ];
24   cmakeFlags = [
25     "-DSYSTEM_RL=1"
26     "-DSYSTEM_GL=1"
27   ];
29   installPhase = ''
30     runHook preInstall
31     install -Dm755 lottieconverter "$out/bin/lottieconverter"
32     runHook postInstall
33   '';
35   meta = with lib; {
36     homepage = "https://github.com/sot-tech/LottieConverter/";
37     description = "Lottie converter utility";
38     license = licenses.bsd3;
39     platforms = platforms.all;
40     maintainers = with maintainers; [ CRTified nickcao ];
41     mainProgram = "lottieconverter";
42   };