nixpkgs/pkgs/tools/misc/lottieconverter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
913 B
Nix
Raw Normal View History

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