From 67e422fea757dbe2d01bccd872333354af0057b6 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 27 Jan 2021 18:37:39 -0500 Subject: [PATCH 13/19] gnu: Add rlottie-for-telegram-desktop. * gnu/packages/telegram.scm (rlottie-for-telegram-desktop): New variable. --- gnu/packages/telegram.scm | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index adcdd3a6b3..a087252400 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -18,7 +18,9 @@ (define-module (gnu packages telegram) #:use-module (gnu packages) + #:use-module (gnu packages animation) #:use-module (gnu packages assembly) + #:use-module (gnu packages check) #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) @@ -31,7 +33,8 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix git-download) - #:use-module (guix build-system cmake)) + #:use-module (guix build-system cmake) + #:use-module (guix build-system meson)) (define-public webrtc-for-telegram-desktop (let ((commit "be23804afce3bb2e80a1d57a7c1318c71b82b7de") @@ -143,3 +146,37 @@ Telegram project, for its use in telegram desktop client.") license:gpl3 ;; LibSRTP, LibVPx, UsrSCTP and Others license:bsd-3)))))) + +(define-public rlottie-for-telegram-desktop + (let ((commit "cbd43984ebdf783e94c8303c41385bf82aa36d5b") + (revision "12")) + (hidden-package + (package + (inherit rlottie) + (version + (git-version "0.2" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/rlottie.git") + (commit commit))) + (file-name + (git-file-name "rlottie-for-telegram-desktop" version)) + (sha256 + (base32 "1lxpbgbhps9rmck036mgmiknqrzpjxpas8n7qxykv6pwzn0c8n0c")))) + (arguments + `(#:configure-flags + (list + "-Dlog=true" + "-Ddumptree=true" + "-Dtest=true") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-cxx-flags + (lambda _ + (substitute* "meson.build" + (("werror=true") + "werror=false")) + #t))))))))) -- 2.30.0