From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sAi0Bl+8F2D2RAAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 08:31:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QAyJAl+8F2COOgAA1q6Kng (envelope-from ) for ; Mon, 01 Feb 2021 08:31:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BDFCC94059B for ; Mon, 1 Feb 2021 08:31:26 +0000 (UTC) Received: from localhost ([::1]:44700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6UcG-0000pj-Vu for larch@yhetil.org; Mon, 01 Feb 2021 03:31:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Ubu-0000nn-KU for guix-patches@gnu.org; Mon, 01 Feb 2021 03:31:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6Ubu-0003Xq-CM for guix-patches@gnu.org; Mon, 01 Feb 2021 03:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6Ubu-0008Lk-7j for guix-patches@gnu.org; Mon, 01 Feb 2021 03:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45954] Telegram-CLI (v6) Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Feb 2021 08:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45954 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Raghav Gururajan , 45954@debbugs.gnu.org Received: via spool by 45954-submit@debbugs.gnu.org id=B45954.161216825832087 (code B ref 45954); Mon, 01 Feb 2021 08:31:02 +0000 Received: (at 45954) by debbugs.gnu.org; 1 Feb 2021 08:30:58 +0000 Received: from localhost ([127.0.0.1]:58672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ubj-0008LL-5o for submit@debbugs.gnu.org; Mon, 01 Feb 2021 03:30:58 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:63386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ubg-0008LB-IW for 45954@debbugs.gnu.org; Mon, 01 Feb 2021 03:30:49 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DTh3S710Rz3wXl; Mon, 1 Feb 2021 09:30:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1612168245; bh=f2PcBOiPgDnsx5TNKpDxQxC9I673xmXSp4g4gwjXnT4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=TAtHEJV+mycNqGmQo152uID4rV5pSemGbY0OaaYM0hdPY0a6AD3XUXMxRG5s+UbnM bvHJA6l57I0Ta+xmjLH4P+rMP+XMoEf6Sah6HfDVha1RCuph0bH38RlerpHM+Vw9Ps OqlBj4bNBDK+rLCr6yYZ5CB8pg3YkAU4yAzmH5lw= Message-ID: From: Leo Prikler Date: Mon, 01 Feb 2021 09:30:43 +0100 In-Reply-To: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> References: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=TAtHEJV+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: BDFCC94059B X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: W6XwU9VSygNq 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