From 334c00f2bcc4de5df3de35dfefed3183c5cfdf66 Mon Sep 17 00:00:00 2001 From: Alex Griffin Date: Fri, 8 Jul 2016 14:27:32 -0500 Subject: [PATCH] gnu: Add reptyr. * gnu/packages/screen.scm (reptyr): New variable. Signed-off-by: Leo Famulari --- gnu/packages/screen.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/screen.scm b/gnu/packages/screen.scm index db8da0ae30..e3f97f4b68 100644 --- a/gnu/packages/screen.scm +++ b/gnu/packages/screen.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2014 Mark H Weaver ;;; Copyright © 2015 Eric Bavier ;;; Copyright © 2016 Efraim Flashner +;;; Copyright © 2016 Alex Griffin ;;; ;;; This file is part of GNU Guix. ;;; @@ -142,3 +143,30 @@ (define-public byobu configuration utilities, and system status notifications for the GNU Screen window manager as well as the Tmux terminal multiplexer.") (license gpl3+))) + +(define-public reptyr + (package + (name "reptyr") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/nelhage/reptyr/archive" + "/reptyr-" version ".tar.gz")) + (sha256 + (base32 + "07pfl0rkgm8m3f3jy8r9l2yvnhf8lgllpsk3mh57mhzdxq8fagf7")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; no tests + #:make-flags (list "CC=gcc" + (string-append "PREFIX=" %output)) + #:phases (modify-phases %standard-phases (delete 'configure)))) + (home-page "https://github.com/nelhage/reptyr") + (synopsis "Tool for reparenting a running program to a new terminal") + (description + "reptyr is a utility for taking an existing running program and attaching +it to a new terminal. Started a long-running process over @code{ssh}, but have +to leave and don't want to interrupt it? Just start a @code{screen}, use +reptyr to grab it, and then kill the @code{ssh} session and head on home.") + (license expat)))