From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJbbO-0000tw-7G for guix-patches@gnu.org; Fri, 18 May 2018 05:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJbbK-00070b-CO for guix-patches@gnu.org; Fri, 18 May 2018 05:23:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJbbK-00070X-99 for guix-patches@gnu.org; Fri, 18 May 2018 05:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJbbK-0002Wq-0F for guix-patches@gnu.org; Fri, 18 May 2018 05:23:02 -0400 Subject: [bug#31488] [PATCH] gnu: git: Add "credential-netrc" output. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJbaV-0000T4-SD for guix-patches@gnu.org; Fri, 18 May 2018 05:22:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJbaU-0006il-TG for guix-patches@gnu.org; Fri, 18 May 2018 05:22:11 -0400 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:33865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJbaU-0006iX-N6 for guix-patches@gnu.org; Fri, 18 May 2018 05:22:10 -0400 Received: by mail-wr0-x22b.google.com with SMTP id p18-v6so8460420wrm.1 for ; Fri, 18 May 2018 02:22:10 -0700 (PDT) Received: from mimimi.home (2a01cb040a37a0005adf9a0845f647b3.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:5adf:9a08:45f6:47b3]) by smtp.gmail.com with ESMTPSA id 67-v6sm9594515wmw.32.2018.05.18.02.22.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 02:22:09 -0700 (PDT) From: Pierre Neidhardt Date: Fri, 18 May 2018 11:22:07 +0200 Message-Id: <20180518092207.2457-1-ambrevar@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31488@debbugs.gnu.org * gnu/packages/version-control.scm (git): Add "credential-netrc" output. --- gnu/packages/version-control.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index b41529d4f..4892c7ab8 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -188,6 +188,7 @@ as well as the classic centralized workflow.") (outputs '("out" ; the core "send-email" ; for git-send-email "svn" ; git-svn + "credential-netrc" ; git-credential-netrc "gui")) ; gitk, git gui (arguments `(#:make-flags `("V=1" ;more verbose compilation @@ -217,6 +218,8 @@ as well as the classic centralized workflow.") (("/bin/sh") (which "sh")) (("/usr/bin/perl") (which "perl")) (("/usr/bin/python") (which "python"))) + (substitute* "contrib/credential/netrc/git-credential-netrc" + (("/usr/bin/perl") (which "perl"))) #t)) (add-after 'configure 'add-PM.stamp (lambda _ @@ -271,6 +274,13 @@ as well as the classic centralized workflow.") (copy-file "contrib/completion/git-completion.bash" (string-append completions "/git")) #t))) + (add-after 'install 'install-credential-netrc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((netrc (assoc-ref outputs "credential-netrc")) + (bin (string-append netrc "/bin"))) + (mkdir-p bin) + (install-file "contrib/credential/netrc/git-credential-netrc" bin) + #t))) (add-after 'install 'split (lambda* (#:key inputs outputs #:allow-other-keys) ;; Split the binaries to the various outputs. -- 2.17.0