forked from mirrors/nixpkgs
Merge pull request #182555 from NickCao/lottieconverter
lottieconverter: 0.1.1 -> 0.2
This commit is contained in:
commit
8698ebee6a
|
@ -1,34 +1,42 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, libpng, rlottie, zlib }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, libpng
|
||||||
|
, rlottie
|
||||||
|
, giflib
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "LottieConverter";
|
pname = "lottieconverter";
|
||||||
version = "0.1.1";
|
version = "0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sot-tech";
|
owner = "sot-tech";
|
||||||
repo = pname;
|
repo = finalAttrs.pname;
|
||||||
rev = "r${version}";
|
rev = "r${finalAttrs.version}";
|
||||||
hash = "sha256-lAGzh6B2js2zDuN+1U8CZnse09RJGZRXbtmsheGKuYU=";
|
hash = "sha256-oCFQsOQbWzmzClaTOeuEtGo7uXoKYtaJuSLLgqAQP1M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libpng rlottie zlib ];
|
nativeBuildInputs = [ cmake ];
|
||||||
makeFlags = [ "CONF=Release" ];
|
buildInputs = [ libpng rlottie giflib ];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DSYSTEM_RL=1"
|
||||||
|
"-DSYSTEM_GL=1"
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
install -Dm755 lottieconverter "$out/bin/lottieconverter"
|
||||||
mkdir -p $out/bin
|
|
||||||
cp -v dist/Release/GNU-Linux/lottieconverter $out/bin/
|
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/sot-tech/LottieConverter/";
|
homepage = "https://github.com/sot-tech/LottieConverter/";
|
||||||
description = "Lottie converter utility";
|
description = "Lottie converter utility";
|
||||||
license = licenses.lgpl21Plus;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ CRTified ];
|
maintainers = with maintainers; [ CRTified nickcao ];
|
||||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/lottieconverter.x86_64-darwin
|
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue