From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Jordan Subject: [PATCH] entr-3.5 Date: Wed, 11 May 2016 10:03:55 -0400 Message-ID: <87wpn0ofn8.fsf@mailerver.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0UkN-00046z-F4 for guix-devel@gnu.org; Wed, 11 May 2016 10:04:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0UkJ-0001uo-71 for guix-devel@gnu.org; Wed, 11 May 2016 10:04:18 -0400 Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:34394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0UkJ-0001ua-2P for guix-devel@gnu.org; Wed, 11 May 2016 10:04:15 -0400 Received: by mail-vk0-x232.google.com with SMTP id m188so58115763vka.1 for ; Wed, 11 May 2016 07:04:14 -0700 (PDT) Received: from localhost ([72.22.137.207]) by smtp.gmail.com with ESMTPSA id w140sm1323918vkd.0.2016.05.11.07.04.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2016 07:04:11 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix-devel --=-=-= Content-Type: text/plain Good Day everyone, I'm relatively new to guix, spent the first couple days getting used to running it in my VM. Loving it so far. Since I'm not sure what to expect I decided to package a simple program that I find quite handy. Let me know if I should change anything. Also note that I followed "8.5 Submitting Patches" of the "GNU Guix Reference Manual" --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Added-package-entr.patch Content-Description: entr-3.5 guix package >From 5b33ed530e472008bddf85a2f23b3fa9857b365e Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Wed, 11 May 2016 09:25:13 -0400 Subject: [PATCH] Added package entr. --- gnu/packages/entr.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 gnu/packages/entr.scm diff --git a/gnu/packages/entr.scm b/gnu/packages/entr.scm new file mode 100644 index 0000000..8cb1dca --- /dev/null +++ b/gnu/packages/entr.scm @@ -0,0 +1,43 @@ +(define-module (gnu packages entr) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix utils) + #:use-module (guix build-system gnu) + #:use-module (gnu packages less)) + +(define-public entr + (package + (name "entr") + (version "3.5") + (source + (origin + (method url-fetch) + (uri (string-append "http://entrproject.org/code/entr-" + version ".tar.gz")) + (sha256 + (base32 + "05k4jyjna0pr2dalwc1l1dhrcyk6pw7hbss7jl4ykwfadcs5br73")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "CONFIG_SHELL" (which "bash")) + (setenv "CC" (which "gcc")) + (setenv "DESTDIR" (string-append out "/")) + (setenv "PREFIX" "") + (setenv "MANPREFIX" "man") + (system* "./configure"))))))) + (home-page "http://entrproject.org/") + (synopsis "Run arbitrary commands when files change") + (description + "entr is a zero-configuration tool with no external build or +runtime dependencies. The interface to entr is not only minimal, it +aims to be simple enough to create a new category of ad hoc +automation. These micro-tests reduce keystrokes, but more importantly +they emphasize the utility of automated checks.") + (license isc))) -- 2.7.4 --=-=-= Content-Type: text/plain Sincerely, -- Matthew Jordan --=-=-=--