gnu: scintilla: Use string-delete to compute source URL.

* gnu/packages/text-editors.scm (scintilla) [source]: Use string-delete
instead of string-split and string-append.
This commit is contained in:
Maxim Cournoyer 2023-06-14 13:58:24 -04:00
parent 87cf2a859d
commit 0e55391482
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -1006,8 +1006,8 @@ The basic features of Text Pieces are:
(source
(origin
(method url-fetch)
(uri (let ((v (apply string-append (string-split version #\.))))
(string-append "https://www.scintilla.org/scintilla" v ".tgz")))
(uri (string-append "https://www.scintilla.org/scintilla"
(string-delete #\. version) ".tgz"))
(sha256
(base32 "0inbhzqdikisvnbdzn8153p1apbghxjzkkzji9i8zsdpyapb209z"))))
(build-system gnu-build-system)
@ -1030,10 +1030,8 @@ The basic features of Text Pieces are:
(find-files "bin/" "\\.so$"))
(for-each (lambda (f) (install-file f inc))
(find-files "include/" "."))))))))
(native-inputs
(list pkg-config python-wrapper))
(inputs
(list gtk+))
(native-inputs (list pkg-config python-wrapper))
(inputs (list gtk+))
(home-page "https://www.scintilla.org/")
(synopsis "Code editor for GTK+")
(description "Scintilla is a source code editing component for