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:
Nicolas Goaziou 2020-02-05 00:30:50 +01:00
parent 892be267ee
commit 861bd91b9a
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -8626,50 +8626,40 @@ 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") (package
(revision "1")) (name "emacs-yasnippet-snippets")
(package (version "0.20")
(name "emacs-yasnippet-snippets") (source
(version (string-append "1-" revision "." (string-take commit 8))) (origin
(source (method git-fetch)
(origin (uri (git-reference
(method git-fetch) (url "https://github.com/AndreaCrotti/yasnippet-snippets")
(uri (git-reference (commit version)))
(url "https://github.com/AndreaCrotti/yasnippet-snippets") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32 "095w7cdmfwmmr6426mbq15n0a5izgbmv9408m9yh1pqz5x3v3vsx"))))
(sha256 (build-system trivial-build-system)
(base32 (arguments
"1m935zgglw0iakzrixld5rcjz3wnj84f8wy2mvc3pggjri9l0qr9")))) `(#:modules ((guix build utils))
(build-system trivial-build-system) #:builder
(arguments (begin
`(#: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"))
#:builder (snippet-dir
(begin (string-append out "/share/emacs/yasnippet-snippets/")))
(use-modules (ice-9 ftw) (with-directory-excursion source
(ice-9 regex) (mkdir-p snippet-dir)
(guix build utils)) (copy-recursively "snippets" snippet-dir)))
(with-directory-excursion (assoc-ref %build-inputs "source") #t)))
(for-each (lambda (dir) (home-page "https://github.com/AndreaCrotti/yasnippet-snippets")
(copy-recursively (synopsis "Collection of YASnippet snippets for many languages")
dir (description
(string-append %output "Provides Andrea Crotti's collection of YASnippet snippets. After installation,
"/share/emacs/yasnippet-snippets/"
dir)))
(scandir "." (lambda (fname)
(and (string-match "-mode$" fname)
(directory-exists? fname))))))
#t)))
(home-page "https://github.com/AndreaCrotti/yasnippet-snippets")
(synopsis "Collection of YASnippet snippets for many languages")
(description
"Provides Andrea Crotti's collection of YASnippet snippets. After installation,
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")