gnu: git-credential-netrc: Add Git.pm to PERL5LIB.

* gnu/packages/version-control.scm (git)[credential-netrc]: Add Git.pm to PERL5LIB.
This commit is contained in:
Pierre Neidhardt 2018-09-18 12:18:23 +02:00
parent 20f8d73fac
commit 1cfcb841ed
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 7 additions and 0 deletions

View File

@ -309,6 +309,13 @@ as well as the classic centralized workflow.")
(let* ((netrc (assoc-ref outputs "credential-netrc"))) (let* ((netrc (assoc-ref outputs "credential-netrc")))
(install-file "contrib/credential/netrc/git-credential-netrc" (install-file "contrib/credential/netrc/git-credential-netrc"
(string-append netrc "/bin")) (string-append netrc "/bin"))
;; Previously, Git.pm was automatically found by netrc.
;; Perl 5.26 changed how it locates modules so that @INC no
;; longer includes the current working directory (the Perl
;; community calls this "dotless @INC").
(wrap-program (string-append netrc "/bin/git-credential-netrc")
`("PERL5LIB" ":" prefix
(,(string-append (assoc-ref outputs "out") "/share/perl5"))))
#t))) #t)))
(add-after 'install 'split (add-after 'install 'split
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)