From 1315cc5939cc8abaf7a292e30226672e94230724 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 6 Apr 2014 14:36:31 -0400 Subject: [PATCH 2/3] gnu: Add dtach. gnu/packages/screen.scm (dtach): New variable. --- gnu/packages/screen.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/screen.scm b/gnu/packages/screen.scm index ae03220..63fb7a4 100644 --- a/gnu/packages/screen.scm +++ b/gnu/packages/screen.scm @@ -57,3 +57,35 @@ then manages the different virtual terminals, allowing you to easily switch between them, to detach them from the current session, or even splitting the view to show two terminals at once.") (license gpl2+))) + +(define-public dtach + (package + (name "dtach") + (version "0.8") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/dtach/dtach-" + version ".tar.gz")) + (sha256 + (base32 + "1agjp08zxxxfni62sqx9qsd9526yqwlz7ry07lfq3clavyylwq8n")))) + (build-system gnu-build-system) + (arguments + ;; No install target. + '(#:phases (alist-replace + 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (mkdir out) + (mkdir (string-append out "/bin")) + (copy-file "dtach" (string-append out "/bin/dtach")))) + %standard-phases) + ;; No check target. + #:tests? #f)) + (home-page "http://dtach.sourceforge.net/") + (synopsis "Emulates the detach feature of screen") + (description + "dtach is a tiny program that emulates the detach feature of screen, +allowing you to run a program in an environment that is protected from the +controlling terminal and attach to it later.") + (license gpl2+))) -- 2.0.0