From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gCtfCQklgmNTogAAbAwnHQ (envelope-from ) for ; Sat, 26 Nov 2022 15:39:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6Lw9CQklgmMp5AAAauVa8A (envelope-from ) for ; Sat, 26 Nov 2022 15:39:05 +0100 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 8F20A2B0C4 for ; Sat, 26 Nov 2022 15:39:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oywKE-0005pO-P1; Sat, 26 Nov 2022 09:38:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oywKD-0005pA-8q for help-guix@gnu.org; Sat, 26 Nov 2022 09:38:37 -0500 Received: from ns13.heimat.it ([46.4.214.66]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oywK9-0005DX-5t for help-guix@gnu.org; Sat, 26 Nov 2022 09:38:37 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id CD0A030022E; Sat, 26 Nov 2022 14:38:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pg1LcBiCMBzz; Sat, 26 Nov 2022 14:38:19 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 037C430022D; Sat, 26 Nov 2022 14:38:18 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 8625B20C1901; Sat, 26 Nov 2022 15:38:18 +0100 (CET) Received: (nullmailer pid 24221 invoked by uid 1000); Sat, 26 Nov 2022 14:38:18 -0000 From: Giovanni Biscuolo To: help-guix@gnu.org Cc: Arun Isaac , Pjotr Prins Subject: use guix shell with a file (e.g. tissue.scm) Organization: Xelera.eu Date: Sat, 26 Nov 2022 15:38:17 +0100 Message-ID: <87cz99u6g6.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669473544; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=zEEppEaeUxmqobZM5IUK4UuaVA8UdrZOAMSMrLvDAc4=; b=mCDH6SyoqjaYbKxB/GZD9VLIBi+cQhgWxE62xkJF5IU02mY8LVM0xudEOdqOaAfh+z9mzo yBRyKdYMTgxVvs9IRZs+aoSoqnpZIGnBxxjDToUfAu8Zx4XgwuMfkdq9QoTUfL1FeIvnM6 LqG1NN8Bw+VL8yukWHITpPErOS80TnmgLz2khgho/8rjam72+d3yvn3d4S1LEh6a2BhQY1 T2ccJmBkI+VWX0lS+SqEyi//SYHX2Fp5dWwSMyCJNcK+KZZgX3GE2KJ0/hmetTCZ+hwh90 wfnhjkP2Lutp3HwV/+l1XTlnRv6BDFfcxYohKWJ+m/KPC022DsHj2sr1t3EVIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669473544; a=rsa-sha256; cv=none; b=NU2kDksMwxwBmZsPpu6p+A2WCj0ugzSo4j4EPNBmKfK9tGm8yT4sUOdEDXusJwmbGFR1XO NxOognYmO4hFrJ8O1FK3eIHhlgWGLzelebbIf8TBM5J3pdM5btI7EtoNqshZf9j5DKhyFQ 6LGJ/K2K/xBJ8OMtB6JUR1ycJzyuAFmxaBEEDHIkfWHxXcME3Qy4SykXY22zVhRLp3xm9t Wa/SGNsmQCxqvha+D5XeLPBjDONq6F9MFnZq4PonBU1yA/L0WUQvFN0B+OCuwou2X48Y/I AuFWBYNfNTiYOM95da5Pmt6IYbuIn1PaQ4Qh0B5OhItkQG/6spmbJO/RpV6v6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8F20A2B0C4 X-Spam-Score: -5.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: h99V6uO2cObL --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, I just want to share with you a temporary solution for users who wish to try out tissue or other packages before they are included in Guix upstream. ...and yes, unlike me advanced Guix users may find this obvious :-) Put this file --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=tissue.scm Content-Description: tissue and skribilo-latest packages (use-modules (gnu packages autotools) (gnu packages gettext) (gnu packages guile) (gnu packages guile-xyz) ((gnu packages skribilo) #:prefix guix:) (guix build-system gnu) (guix gexp) (guix packages) (guix git-download) ((guix licenses) #:prefix license:)) (define skribilo-latest (let ((commit "621eb1945aec8f26f5aee4bdf896f2434e145182") (revision "1")) (package (inherit guix:skribilo) (name "skribilo") (version (git-version "0.9.5" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://git.systemreboot.net/skribilo") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "16rdcvszl9x183y32hjdwns0lkrvkmwd2fsshymspb12k4cxj6i4")))) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake) ("gettext" ,gnu-gettext) ,@(package-native-inputs guix:skribilo)))))) (define tissue (let ((commit "6d6285d071132960835f848a1703faaea2356937") (revision "3")) (package (name "tissue") (version (git-version "0.1.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://git.systemreboot.net/tissue") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1dlcy7m4gz1vmklyny4mxky9822q5hjc4qdmn42yf2qvh8xy62g5")))) (build-system gnu-build-system) (arguments (list #:make-flags #~(list (string-append "prefix=" #$output)) #:modules `(((guix build guile-build-system) #:select (target-guile-effective-version)) ,@%gnu-build-system-modules) #:phases (with-imported-modules '((guix build guile-build-system)) #~(modify-phases %standard-phases (replace 'patch-source-shebangs (lambda* (#:key inputs #:allow-other-keys) (substitute* "bin/tissue" (("^exec guile") (string-append "exec " (search-input-file inputs "/bin/guile")))))) (delete 'configure) (add-after 'install 'wrap (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (effective-version (target-guile-effective-version))) (wrap-program (string-append out "/bin/tissue") `("GUILE_LOAD_PATH" prefix (,(string-append out "/share/guile/site/" effective-version) ,(getenv "GUILE_LOAD_PATH"))) `("GUILE_LOAD_COMPILED_PATH" prefix (,(string-append out "/lib/guile/" effective-version "/site-ccache") ,(getenv "GUILE_LOAD_COMPILED_PATH"))))))))))) (inputs (list guile-3.0 guile-filesystem guile-git guile-xapian)) (propagated-inputs (list skribilo-latest)) (home-page "https://tissue.systemreboot.net") (synopsis "Text based issue tracker") (description "tissue is a text based issue tracker.") (license license:gpl3+)))) tissue --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable in your preferred directory (~/guix/unpackaged/ in the example below) and then: =2D-8<---------------cut here---------------start------------->8--- guix shell -f ~/guix/unpackaged/tissue.scm -- tissue help =2D-8<---------------cut here---------------end--------------->8--- The first time the package(s) gets compiled, so it'll take as time as needed, from the second time onwards the guix shell cache will do its job and the command will run immediatly. With this trick you can use Guix to install tissue [1] and use it for your project - or tissue issues [2] - before tissue is packaged in Guix. =C2=ABOne Guix to rule them all=C2=BB :-D Happy hacking! [1] even on foreign distros obviuosly [2] web view: https://issues.genenetwork.org/?type=3Dopen-issue =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmOCJNkMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSqkcP/1ZCqqNNSaT5CuSEbMlcxTdq0i1oRubZieUSpXIl xka+VWmuusyf+op/1FP9UfOE4bvV7CSkiAGFC534nlVYIiIb/uEGozti+qUE/OT2 dfS/LpDIncka+Op+HpeJ7IFgqMLK7lLNYizZlxsH/7ZbbXYHhiZ9zntBLFJsMV+m MONrCbrCaliHfksD2OZ0lPx+SaGzrfbFOIgK+j0+7TiChntKX0BE+gf9h3G0lpmu pgLjCWHCX7/VMaJqn20hTjATumAv5DbT7B2NYSGJzDuqSKci2OV8t9hY0kPnVFty PPC+djvF2YNJ2u1hUbIETTvr4sr71qG78n0W2+n+sc34hjk70FJ9uhQaurOpZhO4 Fn1oo7B6bd4iZen7O3MHGxnxXokY0F4BA2XNNg/Drweb+W2cPSuSMSJfXwgvDEYw 8KkB/IPWVsw79QzvHLwTaWmpeDuHgIXFNborbu011CCQ2PBQhPxX6Gg12vmwz9aV BzYXbd6+QhXa9Ajp76G3sMYGCfdzecsBNL4Q6eH90l5WcUHs/65zHdKWeZJ5R3PD A6f4o1YIRjScc7SIXrpDBVQk90FzDQZ4bPpzaeqAxSDQZzCPNPJW7XsujHxIKxJl HfyDxYzop2qgGh9gINVc7f0XWISEi6imL8fqxhUW/n8WCfVw+of6WpPGvV0NZsZJ 0z+7 =AIy7 -----END PGP SIGNATURE----- --==-=-=--