gnu: emacs-yasnippet-snippets: Update to 0.20.
* gnu/packages/emacs-xyz.scm (emacs-yasnippet-snippets): Update to 0.20. [arguments]: Remove unnecessary modules. [license]: Change to GPL3+. Note: the new official release is "0.20" whereas previous package used arbitrary "1-1". This may prevent users with this package already installed from updating.
This commit is contained in:
parent
892be267ee
commit
861bd91b9a
1 changed files with 31 additions and 41 deletions
|
@ -8626,41 +8626,31 @@ abbreviation and automatically expand it into function templates.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public emacs-yasnippet-snippets
|
(define-public emacs-yasnippet-snippets
|
||||||
(let ((commit "885050d34737e2fb36a3e7759d60c09347bd4ce0")
|
|
||||||
(revision "1"))
|
|
||||||
(package
|
(package
|
||||||
(name "emacs-yasnippet-snippets")
|
(name "emacs-yasnippet-snippets")
|
||||||
(version (string-append "1-" revision "." (string-take commit 8)))
|
(version "0.20")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/AndreaCrotti/yasnippet-snippets")
|
(url "https://github.com/AndreaCrotti/yasnippet-snippets")
|
||||||
(commit commit)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "095w7cdmfwmmr6426mbq15n0a5izgbmv9408m9yh1pqz5x3v3vsx"))))
|
||||||
"1m935zgglw0iakzrixld5rcjz3wnj84f8wy2mvc3pggjri9l0qr9"))))
|
|
||||||
(build-system trivial-build-system)
|
(build-system trivial-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((ice-9 ftw)
|
`(#:modules ((guix build utils))
|
||||||
(ice-9 regex)
|
|
||||||
(guix build utils))
|
|
||||||
#:builder
|
#:builder
|
||||||
(begin
|
(begin
|
||||||
(use-modules (ice-9 ftw)
|
(use-modules (guix build utils))
|
||||||
(ice-9 regex)
|
(let* ((source (assoc-ref %build-inputs "source"))
|
||||||
(guix build utils))
|
(out (assoc-ref %outputs "out"))
|
||||||
(with-directory-excursion (assoc-ref %build-inputs "source")
|
(snippet-dir
|
||||||
(for-each (lambda (dir)
|
(string-append out "/share/emacs/yasnippet-snippets/")))
|
||||||
(copy-recursively
|
(with-directory-excursion source
|
||||||
dir
|
(mkdir-p snippet-dir)
|
||||||
(string-append %output
|
(copy-recursively "snippets" snippet-dir)))
|
||||||
"/share/emacs/yasnippet-snippets/"
|
|
||||||
dir)))
|
|
||||||
(scandir "." (lambda (fname)
|
|
||||||
(and (string-match "-mode$" fname)
|
|
||||||
(directory-exists? fname))))))
|
|
||||||
#t)))
|
#t)))
|
||||||
(home-page "https://github.com/AndreaCrotti/yasnippet-snippets")
|
(home-page "https://github.com/AndreaCrotti/yasnippet-snippets")
|
||||||
(synopsis "Collection of YASnippet snippets for many languages")
|
(synopsis "Collection of YASnippet snippets for many languages")
|
||||||
|
@ -8669,7 +8659,7 @@ abbreviation and automatically expand it into function templates.")
|
||||||
the snippets will be in \"~/.guix-profile/share/emacs/yasnippet-snippets/\".
|
the snippets will be in \"~/.guix-profile/share/emacs/yasnippet-snippets/\".
|
||||||
To make YASnippet aware of these snippets, add the above directory to
|
To make YASnippet aware of these snippets, add the above directory to
|
||||||
@code{yas-snippet-dirs}.")
|
@code{yas-snippet-dirs}.")
|
||||||
(license license:expat))))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public emacs-helm-c-yasnippet
|
(define-public emacs-helm-c-yasnippet
|
||||||
(let ((commit "65ca732b510bfc31636708aebcfe4d2d845b59b0")
|
(let ((commit "65ca732b510bfc31636708aebcfe4d2d845b59b0")
|
||||||
|
|
Reference in a new issue