From mboxrd@z Thu Jan 1 00:00:00 1970 From: manolis837@gmail.com Subject: [PATCH 1/2] gnu: hurd: Add hurd-source-url procedure. Date: Sat, 8 Apr 2017 17:06:56 +0300 Message-ID: <20170408140657.654-1-manolis837@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwr1A-0006Kt-2s for guix-devel@gnu.org; Sat, 08 Apr 2017 10:07:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwr15-0000SH-2G for guix-devel@gnu.org; Sat, 08 Apr 2017 10:07:08 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:33628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwr14-0000Rz-R2 for guix-devel@gnu.org; Sat, 08 Apr 2017 10:07:02 -0400 Received: by mail-wr0-x241.google.com with SMTP id g19so23605116wrb.0 for ; Sat, 08 Apr 2017 07:07:02 -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@gnu.org From: Manolis Ragkousis * gnu/packages/hurd.scm (hurd-source-url): New procedure. (hurd-headers)[source]: Adjust accordingly. --- gnu/packages/hurd.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm index b5da4cb96..12fce5453 100644 --- a/gnu/packages/hurd.scm +++ b/gnu/packages/hurd.scm @@ -39,6 +39,10 @@ (string-append "mirror://gnu/gnumach/gnumach-" version ".tar.gz")) +(define (hurd-source-url version) + (string-append "mirror://gnu/hurd/hurd-" + version ".tar.gz")) + (define-public gnumach-headers (package (name "gnumach-headers") @@ -113,8 +117,7 @@ communication.") (version "0.9") (source (origin (method url-fetch) - (uri (string-append "mirror://gnu/hurd/hurd-" - version ".tar.gz")) + (uri (hurd-source-url version)) (sha256 (base32 "1nw9gly0n7pyv3cpfm4mmxy4yccrx4g0lyrvd3vk2vil26jpbggw")))) -- 2.12.1