From: Leo Prikler <leo.prikler@student.tugraz.at>
To: Raghav Gururajan <rg@raghavgururajan.name>, 45954@debbugs.gnu.org
Subject: [bug#45954] Telegram-CLI (v6)
Date: Mon, 01 Feb 2021 09:30:43 +0100 [thread overview]
Message-ID: <f2529b6a7dfd934349b57bf1d52802fa7f41a532.camel@student.tugraz.at> (raw)
In-Reply-To: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name>
Am Sonntag, den 31.01.2021, 14:46 -0500 schrieb Raghav Gururajan:
> +(define-public tgl
> + (package
> + (name "tgl")
> + (version "2.0.1")
> + (source
> + (origin
> + (method git-fetch)
> + (uri
> + (git-reference
> + (url "https://github.com/vysheng/tgl.git")
> + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed")))
The commit does not match up with the version. If this is intended,
use git-version instead.
> + (replace 'install
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let* ((out (assoc-ref outputs "out"))
> + (bin-to (string-append out "/bin"))
> + (include-to (string-append out "/include"))
> + (lib-to (string-append out "/lib"))
> + (source (string-append (getenv "TEMP")
> "/source"))
> + (bin-from (string-append source "/bin"))
> + (lib-from (string-append source "/libs")))
> + ;; Install executables.
> + (with-directory-excursion bin-from
> + (for-each
> + (lambda (file)
> + (install-file file bin-to))
> + (list
> + "generate")))
> + ;; Install headers.
> + (with-directory-excursion source
> + (for-each
> + (lambda (file)
> + (install-file file (string-append include-to
> "/tgl/crypto"))
> + (delete-file file))
> + (find-files "crypto" "\\.h$"))
> + (for-each
> + (lambda (file)
> + (install-file file (string-append include-to
> "/tgl/auto"))
> + (delete-file file))
> + (find-files "auto" "\\.h$"))
> + (for-each
> + (lambda (file)
> + (install-file file (string-append include-to
> "/tgl"))
> + (delete-file file))
> + (find-files "." "\\.h$")))
> + ;; Install libraries.
> + (for-each
> + (lambda (file)
> + (install-file file (string-append lib-to "/tgl")))
> + (find-files lib-from "\\.(a|so)$")))
> + #t)))))
You might want to write that in terms of copy-build-system.
> + (replace 'install
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let* ((out (assoc-ref outputs "out"))
> + (source (string-append (getenv "TEMP")
> "/source")))
> + ;; Install client.
> + (install-file
> + (string-append source "/bin/telegram-cli")
> + (string-append out "/bin"))
> + ;; Install daemon.
> + (install-file
> + (string-append source "/start-telegram-daemon")
> + (string-append out "/bin"))
> + ;; Install daemon script.
> + (install-file
> + (string-append source "/telegram-daemon")
> + (string-append out "/etc/init.d"))
> + ;; Install server public-key.
> + (install-file
> + (string-append source "/server.pub")
> + (string-append out "/etc/telegram-cli")))
> + #t))
Same here. Also, I'm not sure if SysV init scripts are that compatible
with Guix running on Shepherd. Is there a more direct way of launching
the daemon?
> + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr
> /sbin:/usr/bin")
> + "$PATH")
Not that it makes much of a difference, as I doubt this file will still
be needed, but PATH=$PATH is a noop. Perhaps you want (getenv "PATH")
instead?
Regards,
Leo
next prev parent reply other threads:[~2021-02-01 8:31 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-18 9:16 [bug#45954] Telegram-CLI Raghav Gururajan
2021-01-19 15:08 ` [bug#45954] Telegram-CLI (v2) Raghav Gururajan
2021-01-20 10:44 ` [bug#45954] Telegram-CLI (v3) Raghav Gururajan
2021-01-22 4:44 ` [bug#45954] Telegram-CLI (v4) Raghav Gururajan
2021-01-28 1:00 ` [bug#45954] Telegram-CLI (v5) Raghav Gururajan
2021-01-31 19:46 ` [bug#45954] Telegram-CLI (v6) Raghav Gururajan
2021-02-01 8:30 ` Leo Prikler [this message]
2021-02-01 22:18 ` Raghav Gururajan
2021-02-01 22:08 ` [bug#45954] Telegram-CLI (v7) Raghav Gururajan
2021-02-01 22:39 ` Leo Prikler
2021-02-02 2:33 ` Raghav Gururajan
2021-02-02 9:50 ` [bug#45954] Telegram-CLI (v7/v8) Leo Prikler
2021-02-03 2:41 ` Raghav Gururajan
2021-02-02 2:25 ` [bug#45954] Telegram-CLI (v8) Raghav Gururajan
2021-02-03 1:56 ` [bug#45954] Telegram-CLI (v9) Raghav Gururajan
2021-02-03 8:16 ` Leo Prikler
2021-02-03 17:52 ` Raghav Gururajan
2021-02-03 17:50 ` [bug#45954] Telegram-CLI (v10) Raghav Gururajan
2021-02-03 18:18 ` bug#45954: " Leo Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f2529b6a7dfd934349b57bf1d52802fa7f41a532.camel@student.tugraz.at \
--to=leo.prikler@student.tugraz.at \
--cc=45954@debbugs.gnu.org \
--cc=rg@raghavgururajan.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.