From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OOUMEvE5cWFcdAEAgWs5BA (envelope-from ) for ; Thu, 21 Oct 2021 11:59:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +LK/DfE5cWFOJAAAB5/wlQ (envelope-from ) for ; Thu, 21 Oct 2021 09:59:13 +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 A380DEF1F for ; Thu, 21 Oct 2021 11:59:12 +0200 (CEST) Received: from localhost ([::1]:44766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdUqt-000169-Sb for larch@yhetil.org; Thu, 21 Oct 2021 05:59:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdUqf-000161-U5 for help-guix@gnu.org; Thu, 21 Oct 2021 05:58:57 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:36858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdUqZ-0007vj-Sz for help-guix@gnu.org; Thu, 21 Oct 2021 05:58:56 -0400 Received: by mail-lj1-x236.google.com with SMTP id q16so1312661ljg.3 for ; Thu, 21 Oct 2021 02:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=C3zKWC/e4vrY+2YYFAxlUtaJ+onMAj4MRKWTzJYG9mw=; b=qeD4OKK6KVOWwo0HgpuDvxoIXixolHD5JdytDlQtS/YQRm/31+ta4ZrZ6HGwq8gFe/ cgkXuj27I3wtlQ2ljYL8mfMEdE9skiHu56OmV8cR8RCPcvYiItGHlU8MnP/VvNzoSCmF GdfR2rsH1FVurqJZAfCEcOyXgXssrDmPk9TI2mo9U6XafBwWAM46x9auH9g+7C8hgIGX JZRdcQdQ7d/gbT37ISBtFhQtWYHii3ps9GWAxU9rP4/fm4Dz0VerxrSX74EpJhx6zDPR A2W5QZmwvP2Qgl1GdA5/MFUIDU1rVJy6JhMFPFjYKHCN5HdswORujpKyRKfx7gdXbMaD PK1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=C3zKWC/e4vrY+2YYFAxlUtaJ+onMAj4MRKWTzJYG9mw=; b=yxl0vh/iL3XwC4duapbBYLPqvf8RrYRqwVewz/hUGhiyMWvgbbBQfRD23OmU/UWbtX IzBYvK+WN1jJl3puaJIyeAAGaIAq+Kg00ET4NnSOUO/DNnG+xGfu0X2NKl2HjdJWQKgP a70GxZWorSR927VgCfOTVf6EczP40FoJ9E/lH/Yg6Iwj/+L1W6ISE1jBcYrnSW0Ocx5Z gWxxAXrhEa389W7zSdm2vWSr52zGsgWBbZp5BNq2a+n9DvfmDSxrLbxn5VNoVKB6l2mo /gjDl9jt+hU1GSDxLVg2oekCMCHjiYZon5aStuPk4eqUpY2PTBGOOyt/Cos5ys1w5Ze4 ML0g== X-Gm-Message-State: AOAM53182Snl5HxNU/0uJOPVhnYiwydVAamFaulenCCt7RtWL3Oa89cm VtvfWooe5Dc8dZoXoUONDfkSXswFnoQ= X-Google-Smtp-Source: ABdhPJwoY456yVo2avCnqWLbPJ5+jicKVm4Gd2xXncRlOB3LnD73d2qHvxK6Bhu0EfXkjC1ae4QAug== X-Received: by 2002:a2e:a4a7:: with SMTP id g7mr4811432ljm.255.1634810328868; Thu, 21 Oct 2021 02:58:48 -0700 (PDT) Received: from guixsd ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id z24sm495582ljm.75.2021.10.21.02.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 02:58:48 -0700 (PDT) From: Oleg Pykhalov To: Fredrik Salomonsson Subject: Re: Question about scripts in guix-home References: <87r1clfxcp.fsf@posteo.net> <87ilxx87n0.fsf@gmail.com> <87wnmc8vmk.fsf@posteo.net> <8735p07xf7.fsf@gmail.com> <87zgr7wkw0.fsf@posteo.net> Date: Thu, 21 Oct 2021 12:58:43 +0300 In-Reply-To: <87zgr7wkw0.fsf@posteo.net> (Fredrik Salomonsson's message of "Sun, 17 Oct 2021 18:45:19 +0000") Message-ID: <87o87iya0c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634810352; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=C3zKWC/e4vrY+2YYFAxlUtaJ+onMAj4MRKWTzJYG9mw=; b=PWQ9kLkTR3/I5HMdSrj0IVyChGwsI9Czo38gyh3BwQER0po5jreT61YKkGHVrImSNXU9WE P/SzfW1CZNe8heP56nHAXesElp4WWADe6s7Ww8ZsSs7vT3f5hI+VtkUacW32CPcC5AufWB mESVycYm4nM+iVijbpCISaHrEY+MuVcuVh+pKFTe2cRn5jt3R8oh8VEGpyIfnp3zA1zC6q 7stTIRFWuigPoNhn9Ag/4tSrwBn0hRpOH5xP8ktCUcfVOpWmxjBeT1bGSyVKxVTfVk7Dtp WTSIjjCinEoWb3gQqWcbVUMGP714m24EFnOydFMExuXGz/5NhraAxUXamTKzdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634810352; a=rsa-sha256; cv=none; b=PzRsVIVo3+ocJSPeUIiKfMYGzih414zFv/k4wUxFAxu1dPNMPg87M9US46qF7CKP6i8o82 eD3ZB78lN1Z3QCkFyAMPLxeHa7+0IaJZawenxG8sFAdaw8z73itjDLiHukaI7hByeDV7ZM s007KJvGyOsl8x9jgdxS/Ke+/hX+q4AhL2ySmBTw+5xyiAoqP8ZPw+1f7Jyi0tYYZDN/I/ n4nY+8UeHTx1bbm3aXDE8EXBDCJp8+hDKNNOTM+U1l3xCx8G+8INS0CKDdYPXYMLw0fRGm 89xYd/zUshnGQiEdWkJL8imNSSSlmX/VtGSvOywCnW3kC4b73i1AbT16Uz4Sjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qeD4OKK6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qeD4OKK6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: A380DEF1F X-Spam-Score: -3.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: CZLnWOMmRXQx --=-=-= Content-Type: text/plain Fredrik Salomonsson writes: > Oleg Pykhalov writes: > >> Well, if you don't want to put the content of >> files/waybar/modules-mic.sh file inside a Scheme string, then you need >> to read the file to a string, e.g.: >> --8<---------------cut here---------------start------------->8--- >> (simple-service 'shellcheck-wrapper >> home-files-service-type >> (list `("local/bin/shellcheck" >> ,(computed-file >> "shellcheck-wrapper" >> #~(begin >> (use-modules (ice-9 rdelim)) >> (with-output-to-file #$output >> (lambda () >> (display #$(with-input-from-file "/tmp/foo" read-string)))) >> (chmod #$output #o555)))))) >> --8<---------------cut here---------------end--------------->8--- > > I'm a bit confused, "Scheme string" and string aren't they the same > thing? Sorry for the confusion, you could omit the "Scheme" word. ;-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAmFxOdMUHGdvLndpZ3Vz dEBnbWFpbC5jb20ACgkQFn+OpQAa+pxjLQ/9GTTHVB8qQhhevjX2slGISy0iAAOx yjrDneFXib5b14r0FiEXIVZ5ohzg1afMsAvUp2F/GqW/m9jzB1AlXwde6kxlulpd 2lOeMaCvBbciGgfiWvqG5Pc4zNATCWuFBAtfaNWHCJEHVhHiTJLnfkgeyAMSNBon yNcAJ79dYJWfupAVa5nKXu7MdtbRjqYRXMo6O0TA4PzqeIyQ4GdpbeTCHqlCKovr f3nn3ANjhd4BDfe1YaX58o9ENYGKwL0I6ZVrv9q3SyQ3w/sxutz4EmATSQH6nPJn IufsbedhIyaX86w7ue6t5164nVe1wGfnWc6jSj2vO9kZFJxAoJyO9RCTzwIgzFlf WZplGQxM562fEcpvA7Du3p6WrOOa8dTj3KYYaF/zKU+AksfD7LoTfdVAl8I4Rvu/ Abt+tpRJIh8K2iF082qkEXUKIcyl2voawzw3vN7jiTPR8ZrXgKgr1xTziQt/GLPZ zwM3JGXuHGXcIK6SKJ7nTQ38nHnJ2A7UzIQF2l3AtHkv8mrJAYiM8PQHAkfa8A/9 oZOoDqCjAiYmGItYvoA/YuhsXexae7ntcnim37DQFOp44j6cil9M3Cqy+I9UTHA4 gaGfwJ3z0MKodaJKrNZR2SZmVCStgi1IrMBumx/FQRo9exLnZkhlYb9V/NBy8RVg uaZ7IxZGCkt/GV8= =UnMo -----END PGP SIGNATURE----- --=-=-=--