From patchwork Wed May 8 06:10:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amar M. Singh" X-Patchwork-Id: 13928 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7F98416FCD; Wed, 8 May 2019 07:12:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1FF1A16E67 for ; Wed, 8 May 2019 07:12:12 +0100 (BST) Received: from localhost ([127.0.0.1]:59998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOFoJ-0007G4-9i for patchwork@mira.cbaines.net; Wed, 08 May 2019 02:12:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOFoE-0007Fh-0n for guix-patches@gnu.org; Wed, 08 May 2019 02:12:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOFoA-0008Gv-IQ for guix-patches@gnu.org; Wed, 08 May 2019 02:12:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46639) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOFoA-0008Gl-8D for guix-patches@gnu.org; Wed, 08 May 2019 02:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOFoA-0003n9-3E for guix-patches@gnu.org; Wed, 08 May 2019 02:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35627] [PATCH] Add golang-importer Resent-From: nly Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 May 2019 06:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35627 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35627@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155729590714542 (code B ref -1); Wed, 08 May 2019 06:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 May 2019 06:11:47 +0000 Received: from localhost ([127.0.0.1]:60182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOFnr-0003mR-SS for submit@debbugs.gnu.org; Wed, 08 May 2019 02:11:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOFno-0003mA-Qo for submit@debbugs.gnu.org; Wed, 08 May 2019 02:11:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:46991) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOFnj-00089c-J1 for submit@debbugs.gnu.org; Wed, 08 May 2019 02:11:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOFnf-0007BK-UV for guix-patches@gnu.org; Wed, 08 May 2019 02:11:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOFnc-000881-DE for guix-patches@gnu.org; Wed, 08 May 2019 02:11:31 -0400 Received: from knopi.disroot.org ([178.21.23.139]:40798) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOFnb-00086w-DL for guix-patches@gnu.org; Wed, 08 May 2019 02:11:28 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 751F130AAE for ; Wed, 8 May 2019 08:11:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c_R9bGOM-1hm for ; Wed, 8 May 2019 08:11:20 +0200 (CEST) From: nly DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1557295880; bh=vgykYnC2fXO6P3/UggZ9tVDCURovXRE9xmbf0NOYfk4=; h=From:To:Subject:Date; b=kz0JXU+ta8ndSMEiMlJ8d1V6UAleEuiJa6RIzu/XcbfPl+uA67Y2Q7zN7LUZHqL9r KLvD9our9KOkVCRTMQbWkJWOdyjfVMVkoWFL71s3vodiXB/Cy5PNU/RWBMl0xKmFEL INUO7FuZ7rL/IQnAdHB1YYzUR2vQQXav9XeOKJjQSbtTQHgvLnPLW442ocXDh4pALX RhXQtV7F0UAFS+rynl+6908vEFva1ZrerTRrIHSiKXZG23BPsIDg+GucsbND0ItjcD OSYBHs9Rfitrpb+woGvCt/90cGXg3YY+26uGAx50Fm1pyJfQcR0A1/UGDlwL0aqJia xntQ8UXOEHijA== Date: Wed, 08 May 2019 11:40:55 +0530 Message-ID: <87lfzhjx1s.fsf@disroot.org> Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi. I've attached some patches for a golang importer To use: 1. (load "golang.scm") 2. (define gopkg (make-go-package go-name*)) 3. (package-sexp gopkg) ;; go-name looks like "golang.org/auth/pkg" ;; TODO 1. reliant on github urls 2. extract license 3. Recursive? Suggestions welcome Thanks, Amar From 05b03042d1bd20969ff8d352372e3a9e58977276 Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Thu, 2 May 2019 19:52:51 +0530 Subject: [PATCH 10/10] Bootstrap: don't use (gnu packages golang) --- guix/import/golang.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guix/import/golang.scm b/guix/import/golang.scm index 3eb74d4984..b51d496602 100644 --- a/guix/import/golang.scm +++ b/guix/import/golang.scm @@ -26,10 +26,11 @@ (guix download) ;; download-to-store ((guix import utils) #:prefix utils:) ;; hash (guix packages) ;; packages + ((guix licenses) #:prefix license:) ;; licenses (guix build-system) ;; build-system printer (guix build-system go) ;; go-build-system (guix store) ;; with-store - (gnu packages golang) ;; inherit (simple) go package + ;; (gnu packages golang) ;; inherit (simple) go package (ice-9 textual-ports) ;; to parse readme.md (ice-9 popen) ;; open-input-ouput-pipe (web uri) ;; uri->string @@ -153,7 +154,8 @@ (let* ((version (latest-release go-name)) (sha256 (go-name->sha256 go-name version)) (readme-string (go-name->readme-string go-name))) - (package (inherit go-github-com-alsm-ioprogress) + (package + ;; (inherit go-github-com-alsm-ioprogress) (name (string-append "go-" go-name)) (version version) @@ -173,6 +175,7 @@ (synopsis (go-name->synopsis go-name)) (description (go-name->description go-name)) ;; TODO: license + (license license:expat) ))) (define (filter-newlines string) -- 2.21.0