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

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

43 lines
876 B
Nix
Raw Normal View History

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