From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mGMfEvX/4mG4OgAAgWs5BA (envelope-from ) for ; Sat, 15 Jan 2022 18:10:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4Dz3DvX/4mGXEwEAauVa8A (envelope-from ) for ; Sat, 15 Jan 2022 18:10:13 +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 5254C41182 for ; Sat, 15 Jan 2022 18:10:12 +0100 (CET) Received: from localhost ([::1]:42608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8mZ9-0003ZZ-IP for larch@yhetil.org; Sat, 15 Jan 2022 12:10:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8mY2-00037Q-TG for guix-patches@gnu.org; Sat, 15 Jan 2022 12:09:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8mY2-0001dc-0J for guix-patches@gnu.org; Sat, 15 Jan 2022 12:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8mY1-0007q2-Hz for guix-patches@gnu.org; Sat, 15 Jan 2022 12:09:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53279] [PATCH] gnu: Add emacs-dtache Resent-From: Niklas Eklund Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Jan 2022 17:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53279 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53279@debbugs.gnu.org Received: via spool by 53279-submit@debbugs.gnu.org id=B53279.164226650830076 (code B ref 53279); Sat, 15 Jan 2022 17:09:01 +0000 Received: (at 53279) by debbugs.gnu.org; 15 Jan 2022 17:08:28 +0000 Received: from localhost ([127.0.0.1]:41637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8mXQ-0007ou-1R for submit@debbugs.gnu.org; Sat, 15 Jan 2022 12:08:28 -0500 Received: from mout01.posteo.de ([185.67.36.65]:42835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8mXN-0007od-PC for 53279@debbugs.gnu.org; Sat, 15 Jan 2022 12:08:22 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B9F36240028 for <53279@debbugs.gnu.org>; Sat, 15 Jan 2022 18:08:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642266495; bh=HPUk1a6ZC5sKt0YXGwjE5UHXR0diAgMUcBqEURGOk70=; h=From:To:Subject:Date:From; b=NM3yC2CC685Llc0MCze1ytCFiEz6l4S3zz1aaRh8SIi9XGiNKWnaGOEbZnmKGHS1L fdOwWTt4fs0mg0udWjiys89uEbAIwK4k+BSZULtfswo3EWonLrAav+EHZnDwAKBbSF 1PBigFr+cCZwI9geDTEcH/NA4yIvPywZjgH2LEhBhyp9AdKiFY/1G5eHSm6PUVtpN6 ofl7HazVfdcUvEhSH+f99cUoH2Pu9P9pKM1tO7oew/RiC7FsmjOVKUBTOSEjDMg+jP bSd4QJs2L0sUPllAU0zDlZeOhIfigN5V5Qr8r/UMkKWn0IR4WwpYJ8NR5HKvfcS4b9 DnnuSjx2dUn+A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Jbl3z0C09z9rxW for <53279@debbugs.gnu.org>; Sat, 15 Jan 2022 18:08:14 +0100 (CET) From: Niklas Eklund In-Reply-To: <87czktkr40.fsf@posteo.net> References: <87pmotpfam.fsf@posteo.net> <87czktkr40.fsf@posteo.net> Date: Sat, 15 Jan 2022 17:08:13 +0000 Message-ID: <877db13p1e.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642266612; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=0W3WJg6iwnGeMbPbyxV09OaFikbEUT6E7Ud5nNApqV0=; b=gT3dA4E42kkE/Rsy8haLSSENJWZjdcC3PqgVmKcRim8MH02ATx8vNZf0YjDP1haZC8c4I2 j6JVN+a6W/elFhp8rhAVqSxqZS/p6Cr7eHJjXttFxA6Je3JRN1HLa4lKxBwKN5/Bg9Zw2J FPsf4I+f+B1fk6iChFMfZGDDJ8T3A4APTNB/Fxlw5mDoVkJJZbiTXxAAKGkVaE52IEChUA 3JJPOTzfXQ/sdnCBOu0ZY+4xEN7K0UaA/+jAJ5FuZ0lhOzNFa0hdHJhYXvV2XcpX+0wlMG cwUscVL0czmR0+mYjSaXaDrMeFT7zWwRWmsvH2mn8wNZRFoZQ1IHMdpWuKtaOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642266612; a=rsa-sha256; cv=none; b=AGt5e1Nur6V1H3SozcIUk4wIcjsSUqBDd196aUungml4bF2tJcB/cbC8oRkiQwBDZfoPcO 0aBHSpWe06KiKrV3L2yB2JJP0Cbot1v/mL8HJdat+iKRBHJlbkWZz3o/dPPP8g3O+MCYmz P+F2lSsBeMozLQgDg4nDrmiQHNORIkH/MYH8uBvZHcD7IfKROdj5d3pwBOn+9mnrqT40OX MjTszcUUsZ9iXM/qA3weleCsv5IgVbYY2HvYJHQyLt4fXYiTcmsurVv7FXlWPVXxn6Okwl dUupI7FLPgCut+5x1lzZlkrH1Z973OLvd7J/iGmNrOvz4DxclQdoWp9CnAHMig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=NM3yC2CC; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=NM3yC2CC; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5254C41182 X-Spam-Score: -3.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ncke/biiPoOj --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Niklas Eklund writes: > Maxime Devos writes: > >> Hi, >> >> Niklas Eklund schreef op za 15-01-2022 om 08:35 [+0000]: >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (modify-phases %standard-phases >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (add-before 'install 'insta= ll-dtache-env >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda* (#:key= outputs #:allow-other-keys) >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (le= t* ((out=C2=A0 (assoc-ref outputs "out")) >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (bin=C2=A0 (string-append out "/bin= "))) >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (mkdir-p bin) >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (copy-file "dtache-env" >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (string-append bin "/dtache-env")))))))) >> >> FWIW you can eliminate (#:key outputs #:allow-other-keys) here: >> >> ,#~(modify-phases %standard-phases >> (add-before 'install 'install-dtache-env >> (lambda _ >> (let ((bin (string-append #$output "/bin))) >> (mkdir-p bin) >> (copy-file "dtache-env" >> (string-append bin "/dtache-env")))))))) >> >> YMMV on whether that's an improvement or not -- technically >> they are equivalent. >> >> Greetings, >> Maxime. > > Hi Maxime, > > thanks for the suggestion :). Here is a new patch with the changes. > > Cheers > Niklas > Hi again, there is an even newer version of the package available so here is a patch featuring version 0.3 instead of version 0.2 :) /Niklas --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-emacs-dtache-package.patch Content-Transfer-Encoding: quoted-printable Content-Description: version_03 >From ec51862795bc3f746cd1cb6e7472826a204ad1f2 Mon Sep 17 00:00:00 2001 From: Niklas Eklund Date: Thu, 13 Jan 2022 18:19:57 +0100 Subject: [PATCH] gnu: Add emacs-dtache package. --- gnu/packages/emacs-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f7022d1f34..5020c4ba43 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -78,7 +78,7 @@ ;;; Copyright =C2=A9 2020 Eric Bavier ;;; Copyright =C2=A9 2020, 2021 Morgan Smith ;;; Copyright =C2=A9 2020 Peng Mei Yu -;;; Copyright =C2=A9 2020, 2021 Niklas Eklund +;;; Copyright =C2=A9 2020, 2021, 2022 Niklas Eklund ;;; Copyright =C2=A9 2020 Marco Grassi ;;; Copyright =C2=A9 2020 Tom=C3=A1s Ort=C3=ADn Fern=C3=A1ndez ;;; Copyright =C2=A9 2020, 2021 Zhu Zihao @@ -214,6 +214,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages password-utils) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages sphinx) + #:use-module (gnu packages screen) #:use-module (gnu packages xdisorg) #:use-module (gnu packages shells) #:use-module (gnu packages shellutils) @@ -23366,6 +23367,40 @@ (define-public emacs-cmake-font-lock according to their use.") (license license:gpl3+)))) =20 +(define-public emacs-dtache + (package + (name "emacs-dtache") + (version "0.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/niklaseklund/dtache") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0f2yxrqfkslif2y88x9vlpshadifppxw6yl1rrf1qzfjy6cv144n")))) + (native-inputs (list emacs-ert-runner)) + (inputs (list dtach)) + (arguments + `(#:test-command '("ert-runner") + #:phases + ,#~(modify-phases %standard-phases + (add-before 'install 'install-dtache-env + (lambda _ + (let ((bin (string-append #$output "/bin"))) + (mkdir-p bin) + (copy-file "dtache-env" + (string-append bin "/dtache-env")))))))) + (build-system emacs-build-system) + (home-page "https://gitlab.com/niklaseklund/dtache") + (synopsis "Run and interact with detached shell commands") + (description + "The dtache package allows users to run shell commands +detached from Emacs. These commands are launched in sessions, using the +program dtach.") + (license license:gpl3+))) + (define-public emacs-dtrt-indent (package (name "emacs-dtrt-indent") --=20 2.32.0 --=-=-=--