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 ZFXfB25vbGHfWAAAgWs5BA (envelope-from ) for ; Sun, 17 Oct 2021 20:46:06 +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 0OEdA25vbGFRXwAAB5/wlQ (envelope-from ) for ; Sun, 17 Oct 2021 18:46:06 +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 5B31D22E3A for ; Sun, 17 Oct 2021 20:46:05 +0200 (CEST) Received: from localhost ([::1]:36996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcBAZ-0005DL-Ew for larch@yhetil.org; Sun, 17 Oct 2021 14:46:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcBA1-0005CU-M7 for help-guix@gnu.org; Sun, 17 Oct 2021 14:45:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcB9y-0006wW-Te for help-guix@gnu.org; Sun, 17 Oct 2021 14:45:29 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 839FE240105 for ; Sun, 17 Oct 2021 20:45:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634496322; bh=/ugaYtdVUdSk7Nr6G+sUVoNWbuN0MCCPd7Cqqyma6vU=; h=From:To:Cc:Subject:Date:From; b=J0uYPMRKDHAW7GuEUWZX5oNcg7Z7/4J5gpPfhlDsm121RDbatRU5j5sK082G45o5c xE2cXDkA9G+R2raV4HbWC4w/zIiHQeIITU9TIzQgd6gS17nHAFyAc9t2IHMScpYjnt Xbv5I3aNLuaFHenwCXZhA8AsP3RfunLSJkoazcW5ad/OgVWvT9UmFpHCNcjbqtrukQ F3EaNeRuK9Kgm8RMKFkFVLK/AnGUM/rVHy3/O4YIk5YQxQ7SLPj7VwrZcxplQm/vdQ Uz6qadUIYo+FV0nc3b9HACEsVox5ZeB/urXvFAvP1CjjSS21upOr395DaoPCYW0UsC /Sgy2ZjE7zhNw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HXTTY2zHDz9rxD; Sun, 17 Oct 2021 20:45:21 +0200 (CEST) From: Fredrik Salomonsson To: Oleg Pykhalov Subject: Re: Question about scripts in guix-home In-Reply-To: <8735p07xf7.fsf@gmail.com> References: <87r1clfxcp.fsf@posteo.net> <87ilxx87n0.fsf@gmail.com> <87wnmc8vmk.fsf@posteo.net> <8735p07xf7.fsf@gmail.com> Date: Sun, 17 Oct 2021 18:45:19 +0000 Message-ID: <87zgr7wkw0.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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=1634496365; 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=ijnduib8mPmKfzcSkl6hNo7jSgP7t8mYdoByENuXyrg=; b=bf/3ZYxR/zMA8fySTkkAZQE9ds/OKgV4h0QRYxJUTXEcZ+BOiHfv3l/N+HYzcSHkTzkNjN siEnIenIQiICoWIQpFXYFL3BAz6eNJV9ZZa2PgZ7Vhjpy47ZKZn1kC7BqgnCsUlicUNEi1 6eOFvonT3oZpvj6A0eI7Ot3JH0trrdlgiEV0P2AAp/QeYDdzwWZfKSkBm1sdhcYExgfXKQ kxqAe3oReSeZWLu6itmOWblK0YrCfYmluXlcZnB/MufWkV18kim25VZs8mgp2/AFdUUN16 UC5VRPPIf72IB1E4HPytZhaH4uP9q3Go8OB/tlsPO45zE0o64pwxClOrl4Asng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634496365; a=rsa-sha256; cv=none; b=ndUREoe2wWSqcQL48g/kbx3yz5p6CfKmL43OPGvnCoTQm56c19+c5IWNWcmPGFQ5HmsnXG p6cpTV00jXUNu9cN5eZjVkBOHBE0zeIv4H9xhgAlfZB4DXWrF/ISHs8Rjk7Ews1PgwiVOY 3a6cFUmxTW2od3FsRRLXky9CuaSMGlNGTp6w6BLBTMHmoTKHYfgeTfx0yG1CvuB8DL83dl BTNOD4G4jOz04vnEDb7TfCHycL7UahXwM9tsDtuf302ao81V3/gWPb9eNH+pnyEnkYeOq1 ELqjNcDrk/MAx5jviGzKdK6El+0b5Of91SqqETM/JkxQpuyh93/0EkOEESvsIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=J0uYPMRK; dmarc=pass (policy=none) header.from=posteo.net; 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: -1.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=J0uYPMRK; dmarc=pass (policy=none) header.from=posteo.net; 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: 5B31D22E3A X-Spam-Score: -1.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: BugZ380YrW+o 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? > Note that it's just an example which you should change according to your > needs. ;-) Also, it creates not an executable but a symlink to an > executable in a store, which I missed in a previous answer. Thank you for the example! This looks like what I was looking for. -- s/Fred[re]+i[ck]+/Fredrik/g