Merge pull request #94197 from CRTified/pkg/lottieconverter

This commit is contained in:
Jan Tojnar 2020-08-10 15:05:39 +02:00 committed by GitHub
commit 0c3b48b7f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkg-config }:
stdenv.mkDerivation rec {
pname = "rlottie";
version = "0.1";
src = fetchFromGitHub {
owner = "Samsung";
repo = pname;
rev = "v${version}";
hash = "sha256-8KQ0ZnVg5rTb44IYnn02WBSe2SA5UGUOSLEdmmscUDs=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
meta = with stdenv.lib; {
homepage = "https://github.com/Samsung/rlottie";
description = "A platform independent standalone c++ library for rendering vector based animations and art in realtime.";
license = licenses.unfree; # Mixed, see https://github.com/Samsung/rlottie/blob/master/COPYING
platforms = platforms.all;
maintainers = with maintainers; [ CRTified ];
};
}

View file

@ -0,0 +1,33 @@
{ stdenv, fetchFromGitHub, libpng, rlottie, zlib }:
stdenv.mkDerivation rec {
pname = "LottieConverter";
version = "0.1.1";
src = fetchFromGitHub {
owner = "sot-tech";
repo = pname;
rev = "r${version}";
hash = "sha256-lAGzh6B2js2zDuN+1U8CZnse09RJGZRXbtmsheGKuYU=";
};
buildInputs = [ libpng rlottie zlib ];
makeFlags = [ "CONF=Release" ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp -v dist/Release/GNU-Linux/lottieconverter $out/bin/
runHook postInstall
'';
meta = with stdenv.lib; {
homepage = "https://github.com/sot-tech/LottieConverter/";
description = "Lottie converter utility";
license = licenses.lgpl21Plus;
platforms = platforms.all;
maintainers = with maintainers; [ CRTified ];
};
}

View file

@ -4776,6 +4776,8 @@ in
lolcat = callPackage ../tools/misc/lolcat { };
lottieconverter = callPackage ../tools/misc/lottieconverter { };
lsd = callPackage ../tools/misc/lsd { };
lsdvd = callPackage ../tools/cd-dvd/lsdvd {};
@ -14845,6 +14847,8 @@ in
rlog = callPackage ../development/libraries/rlog { };
rlottie = callPackage ../development/libraries/rlottie { };
rocksdb = callPackage ../development/libraries/rocksdb { };
rocksdb_lite = rocksdb.override { enableLite = true; };