Hello,

Please, have a look at the attached musl libc packaging.

It may be of use for having smaller statically linked binaries
of selected packages.

Advise about how to finish the submission process, in which
scm file should this go ? I did it standalone, but it looks like
that's not the way things go in guix. Should it go with glibc ?

I'll post a sinit packaging that show how musl can be used.
The sinit package is a minimalistic /sbin/init replacement.

-- 
Vincent Legoll
;;; GNU Guix --- Functional package management for GNU
;;; Copyright <C2><A9> 2016 Vincent Legoll <vincent.leg...@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (musl)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system gnu)
  #:use-module (guix licenses)
  #:use-module (gnu packages))

(define-public musl
  (package
    (name "musl")
    (version "1.1.15")
    (source (origin
              (method url-fetch)
              (uri (string-append "http://www.musl-libc.org/releases/"; name "-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "1ymhxkskivzph0q34zadwfglc5gyahqajm7chqqn2zraxv3lgr4p"))))
    (build-system gnu-build-system)
    (arguments `(#:tests? #f)) ; Musl has no tests

    (synopsis "New C standard library to power a new generation of Linux-based
devices")
    (description "The musl libc is lightweight, fast, simple, free, and strives
to be correct in the sense of standards-conformance and safety.")
    (home-page "http://www.musl-libc.org";)
    (license (x11-style "file://COPYRIGHT"))))

Reply via email to