Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94197 from CRTified/pkg/lottieconverter
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters