gnu: Add tl-parser.

* gnu/packages/telegram.scm (tl-parser): New variable.

Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
This commit is contained in:
Raghav Gururajan 2021-02-01 16:38:25 -05:00 committed by Leo Prikler
parent 4e902da60c
commit 8b4e893368
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -55,6 +55,7 @@ (define-module (gnu packages telegram)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system copy)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
@ -555,3 +556,49 @@ (define-public telegram-desktop
license:lgpl2.1+
;; Others
license:gpl3+))))
(define-public tl-parser
(let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06")
(revision "21"))
(package
(name "tl-parser")
(version
(git-version "0" revision commit))
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/vysheng/tl-parser.git")
(commit commit)))
(file-name
(git-file-name name version))
(sha256
(base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No target
#:imported-modules
((guix build copy-build-system)
,@%cmake-build-system-modules)
#:modules
(((guix build copy-build-system)
#:prefix copy:)
(guix build cmake-build-system)
(guix build utils))
#:phases
(modify-phases %standard-phases
(replace 'install
(lambda args
(apply (assoc-ref copy:%standard-phases 'install)
#:install-plan
'(("." "bin"
#:include ("tl-parser"))
("../source" "include/tl-parser"
#:include-regexp ("\\.h$")))
args))))))
(synopsis "Parse tl scheme to tlo")
(description "TL-Parser is a tl scheme to tlo file parser. It was formely
a part of telegram-cli, but now being maintained separately.")
(home-page "https://github.com/vysheng/tl-parser")
(license license:gpl2+))))