depot/third_party/nixpkgs/pkgs/tools/misc/lottieconverter/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

43 lines
914 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, libpng
, rlottie
, giflib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lottieconverter";
version = "0.2";
src = fetchFromGitHub {
owner = "sot-tech";
repo = "lottieconverter";
rev = "r${finalAttrs.version}";
hash = "sha256-oCFQsOQbWzmzClaTOeuEtGo7uXoKYtaJuSLLgqAQP1M=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libpng rlottie giflib ];
cmakeFlags = [
"-DSYSTEM_RL=1"
"-DSYSTEM_GL=1"
];
installPhase = ''
runHook preInstall
install -Dm755 lottieconverter "$out/bin/lottieconverter"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/sot-tech/LottieConverter/";
description = "Lottie converter utility";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ CRTified nickcao ];
mainProgram = "lottieconverter";
};
})