projects/guix·blob javascript-team · refs

60 lines · 2.6 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Vincent Legoll <[email protected]>
3;;; Copyright © 2016 Ricardo Wurmus <[email protected]>
4;;; Copyright © 2018–2020, 2022 Tobias Geerinckx-Rice <[email protected]>
5;;; Copyright © 2024 Efraim Flashner <[email protected]>
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages musl)
23 #:use-module (guix download)
24 #:use-module (guix packages)
25 #:use-module (guix gexp)
26 #:use-module (guix build-system gnu)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages bash))
30
31(define-public musl
32 (package
33 (name "musl")
34 (version "1.2.6")
35 (source (origin
36 (method url-fetch)
37 (uri (string-append "https://www.musl-libc.org/releases/"
38 "musl-" version ".tar.gz"))
39 (sha256
40 (base32
41 "0ajic0jgiyfk2sk3brn1wsshq0kp9za8x7i4qcgiariwc4xzv1fm"))
42 (patches
43 (search-patches "musl-CVE-2026-40200.patch"))))
44 (build-system gnu-build-system)
45 (arguments
46 (list #:tests? #f ; musl has no tests
47 #:configure-flags
48 #~(list "--enable-wrapper=all"
49 (string-append "--syslibdir=" #$output "/lib"))
50 #:license-file-regexp "COPYRIGHT"))
51 (inputs (list bash-minimal))
52 (synopsis "Small C standard library")
53 (description "musl is a simple and lightweight C standard library. It
54strives to be correct in the sense of standards-conformance and safety.")
55 (home-page "https://musl.libc.org")
56 (properties `((release-monitoring-url . ,home-page)))
57 ;; Musl as a whole is released under the Expat license. Parts of it are
58 ;; derived from various third-party projects that are released under
59 ;; non-copyleft licenses. See the COPYRIGHT file for details.
60 (license license:expat)))