mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: eamcs-magit-svm: Don't use unstable tarball.
* gnu/packages/emacs-xyz.scm (emacs-magit-svn)[source]: Use 'git-fetch'. [native-inputs]: Remove tar, gzip. [arguments]: Adjust code accordingly.
This commit is contained in:
parent
8b9fab8f76
commit
daa82371b8
1 changed files with 20 additions and 28 deletions
|
@ -323,18 +323,16 @@ (define-public emacs-magit-svn
|
|||
(name "emacs-magit-svn")
|
||||
(version "2.2.0")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/magit/magit-svn/archive/"
|
||||
version ".tar.gz"))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/magit/magit-svn")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1c3n377v436zaxamlsz04y1ahdhp96x1vd43zaryv4y10m02ba47"))))
|
||||
"128ra3habdqk1rsnmy87m0aw2pqi033dqmmjmgsmfblnfvi987p9"))))
|
||||
(build-system trivial-build-system)
|
||||
(native-inputs `(("emacs" ,emacs-minimal)
|
||||
("tar" ,tar)
|
||||
("gzip" ,gzip)))
|
||||
(native-inputs `(("emacs" ,emacs-minimal)))
|
||||
(propagated-inputs `(("dash" ,emacs-dash)
|
||||
("with-editor" ,emacs-with-editor)
|
||||
("magit" ,emacs-magit)))
|
||||
|
@ -347,11 +345,7 @@ (define-public emacs-magit-svn
|
|||
(use-modules (guix build utils)
|
||||
(guix build emacs-utils))
|
||||
|
||||
(let* ((tar (string-append (assoc-ref %build-inputs "tar")
|
||||
"/bin/tar"))
|
||||
(PATH (string-append (assoc-ref %build-inputs "gzip")
|
||||
"/bin"))
|
||||
(emacs (string-append (assoc-ref %build-inputs "emacs")
|
||||
(let ((emacs (string-append (assoc-ref %build-inputs "emacs")
|
||||
"/bin/emacs"))
|
||||
(magit (string-append (assoc-ref %build-inputs "magit")
|
||||
"/share/emacs/site-lisp"))
|
||||
|
@ -363,10 +357,8 @@ (define-public emacs-magit-svn
|
|||
,(package-version emacs-with-editor)))
|
||||
(source (assoc-ref %build-inputs "source"))
|
||||
(lisp-dir (string-append %output "/share/emacs/site-lisp")))
|
||||
(setenv "PATH" PATH)
|
||||
(invoke tar "xvf" source)
|
||||
|
||||
(install-file (string-append "magit-svn-" ,version "/magit-svn.el")
|
||||
(install-file (string-append source "/magit-svn.el")
|
||||
lisp-dir)
|
||||
|
||||
(with-directory-excursion lisp-dir
|
||||
|
|
Loading…
Reference in a new issue