diff options
author | Nick Cao <nickcao@nichi.co> | 2022-07-23 16:27:03 +0800 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2022-07-23 21:34:13 +0800 |
commit | 2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb (patch) | |
tree | c7574c577f76fb670604e5491a790d57f4b4a834 /pkgs/tools/misc/lottieconverter | |
parent | c104d82ddaa39d07904075260c2788611127f654 (diff) | |
download | nixpkgs-2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb.tar nixpkgs-2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb.tar.gz nixpkgs-2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb.tar.bz2 nixpkgs-2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb.tar.lz nixpkgs-2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb.tar.xz nixpkgs-2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb.tar.zst nixpkgs-2e1845a7458f4e205d5c4ffe476c6a2d1225fcdb.zip |
lottieconverter: 0.1.1 -> 0.2
Diffstat (limited to 'pkgs/tools/misc/lottieconverter')
-rw-r--r-- | pkgs/tools/misc/lottieconverter/default.nix | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/pkgs/tools/misc/lottieconverter/default.nix b/pkgs/tools/misc/lottieconverter/default.nix index ad2721c36e3..e7ee6e9b74f 100644 --- a/pkgs/tools/misc/lottieconverter/default.nix +++ b/pkgs/tools/misc/lottieconverter/default.nix @@ -1,34 +1,42 @@ -{ lib, stdenv, fetchFromGitHub, libpng, rlottie, zlib }: +{ lib +, stdenv +, fetchFromGitHub +, cmake +, libpng +, rlottie +, giflib +}: -stdenv.mkDerivation rec { - pname = "LottieConverter"; - version = "0.1.1"; +stdenv.mkDerivation (finalAttrs: { + pname = "lottieconverter"; + version = "0.2"; src = fetchFromGitHub { owner = "sot-tech"; - repo = pname; - rev = "r${version}"; - hash = "sha256-lAGzh6B2js2zDuN+1U8CZnse09RJGZRXbtmsheGKuYU="; + repo = finalAttrs.pname; + rev = "r${finalAttrs.version}"; + hash = "sha256-oCFQsOQbWzmzClaTOeuEtGo7uXoKYtaJuSLLgqAQP1M="; }; - buildInputs = [ libpng rlottie zlib ]; - makeFlags = [ "CONF=Release" ]; + nativeBuildInputs = [ cmake ]; + buildInputs = [ libpng rlottie giflib ]; + + cmakeFlags = [ + "-DSYSTEM_RL=1" + "-DSYSTEM_GL=1" + ]; installPhase = '' runHook preInstall - - mkdir -p $out/bin - cp -v dist/Release/GNU-Linux/lottieconverter $out/bin/ - + install -Dm755 lottieconverter "$out/bin/lottieconverter" runHook postInstall ''; meta = with lib; { homepage = "https://github.com/sot-tech/LottieConverter/"; description = "Lottie converter utility"; - license = licenses.lgpl21Plus; + license = licenses.bsd3; platforms = platforms.all; - maintainers = with maintainers; [ CRTified ]; - broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/lottieconverter.x86_64-darwin + maintainers = with maintainers; [ CRTified nickcao ]; }; -} +}) |