02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
42 lines
876 B
Nix
42 lines
876 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, libpng
|
|
, rlottie
|
|
, giflib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "lottieconverter";
|
|
version = "0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sot-tech";
|
|
repo = finalAttrs.pname;
|
|
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 ];
|
|
};
|
|
})
|