2013-01-05 18:47:50 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
|
|
|
|
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
2012-11-27 15:56:37 -05:00
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; This file is part of GNU Guix.
|
2012-11-27 15:56:37 -05:00
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-11-27 15:56:37 -05:00
|
|
|
;;; 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.
|
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-11-27 15:56:37 -05:00
|
|
|
;;; 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
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-11-27 15:56:37 -05:00
|
|
|
|
|
|
|
(define-module (distro packages linux)
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 10:14:04 -05:00
|
|
|
#:use-module (guix licenses)
|
|
|
|
#:use-module ((distro packages compression)
|
|
|
|
#:renamer (symbol-prefix-proc 'guix:))
|
2012-11-27 15:56:37 -05:00
|
|
|
#:use-module (distro packages flex)
|
2012-12-17 15:29:06 -05:00
|
|
|
#:use-module (distro packages libusb)
|
2012-12-03 18:13:02 -05:00
|
|
|
#:use-module (distro packages ncurses)
|
2012-11-27 16:04:57 -05:00
|
|
|
#:use-module (distro packages perl)
|
2012-12-17 15:29:06 -05:00
|
|
|
#:use-module (distro packages pkg-config)
|
2012-12-03 18:13:02 -05:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2012-11-27 15:56:37 -05:00
|
|
|
#:use-module (guix build-system gnu))
|
|
|
|
|
2012-11-27 16:04:57 -05:00
|
|
|
(define-public linux-libre-headers
|
|
|
|
(let* ((version* "3.3.8")
|
|
|
|
(build-phase
|
|
|
|
'(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(setenv "ARCH" "x86_64") ; XXX
|
|
|
|
(and (zero? (system* "make" "defconfig"))
|
|
|
|
(zero? (system* "make" "mrproper" "headers_check")))))
|
|
|
|
(install-phase
|
|
|
|
`(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(and (zero? (system* "make"
|
|
|
|
(string-append "INSTALL_HDR_PATH=" out)
|
|
|
|
"headers_install"))
|
|
|
|
(mkdir (string-append out "/include/config"))
|
|
|
|
(call-with-output-file
|
|
|
|
(string-append out
|
|
|
|
"/include/config/kernel.release")
|
|
|
|
(lambda (p)
|
|
|
|
(format p "~a-default~%" ,version*))))))))
|
|
|
|
(package
|
|
|
|
(name "linux-libre-headers")
|
|
|
|
(version version*)
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"http://linux-libre.fsfla.org/pub/linux-libre/releases/3.3.8-gnu/linux-libre-"
|
|
|
|
version "-gnu.tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(srfi srfi-1))
|
|
|
|
#:phases (alist-replace
|
|
|
|
'build ,build-phase
|
|
|
|
(alist-replace
|
|
|
|
'install ,install-phase
|
|
|
|
(alist-delete 'configure %standard-phases)))
|
|
|
|
#:tests? #f))
|
|
|
|
(synopsis "GNU Linux-Libre kernel headers")
|
|
|
|
(description "Headers of the Linux-Libre kernel.")
|
|
|
|
(license "GPLv2")
|
|
|
|
(home-page "http://www.gnu.org/software/linux-libre/"))))
|
|
|
|
|
2012-11-27 15:56:37 -05:00
|
|
|
(define-public linux-pam
|
|
|
|
(package
|
|
|
|
(name "linux-pam")
|
|
|
|
(version "1.1.6")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (list (string-append "http://www.linux-pam.org/library/Linux-PAM-"
|
|
|
|
version ".tar.bz2")
|
|
|
|
(string-append "mirror://kernel.org/linux/libs/pam/library/Linux-PAM-"
|
|
|
|
version ".tar.bz2")))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1hlz2kqvbjisvwyicdincq7nz897b9rrafyzccwzqiqg53b8gf5s"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("flex" ,flex)
|
|
|
|
|
|
|
|
;; TODO: optional dependencies
|
|
|
|
;; ("libxcrypt" ,libxcrypt)
|
|
|
|
;; ("cracklib" ,cracklib)
|
|
|
|
))
|
|
|
|
(arguments
|
|
|
|
;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
|
|
|
|
;; isn't available.
|
|
|
|
'(#:tests? #f))
|
|
|
|
(home-page "http://www.linux-pam.org/")
|
|
|
|
(synopsis "Pluggable authentication modules for Linux")
|
|
|
|
(description
|
|
|
|
"A *Free* project to implement OSF's RFC 86.0.
|
|
|
|
Pluggable authentication modules are small shared object files that can
|
|
|
|
be used through the PAM API to perform tasks, like authenticating a user
|
|
|
|
at login. Local and dynamic reconfiguration are its key features")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 10:14:04 -05:00
|
|
|
(license bsd-3)))
|
2012-12-03 18:17:49 -05:00
|
|
|
|
|
|
|
(define-public psmisc
|
|
|
|
(package
|
|
|
|
(name "psmisc")
|
|
|
|
(version "22.20")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"052mfraykmxnavpi8s78aljx8w87hyvpx8mvzsgpjsjz73i28wmi"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("ncurses" ,ncurses)))
|
|
|
|
(home-page "http://psmisc.sourceforge.net/")
|
|
|
|
(synopsis
|
|
|
|
"set of utilities that use the proc filesystem, such as fuser, killall, and pstree")
|
|
|
|
(description
|
|
|
|
"This PSmisc package is a set of some small useful utilities that
|
|
|
|
use the proc filesystem. We're not about changing the world, but
|
|
|
|
providing the system administrator with some help in common tasks.")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 10:14:04 -05:00
|
|
|
(license gpl2+)))
|
2012-12-03 18:13:02 -05:00
|
|
|
|
|
|
|
(define-public util-linux
|
|
|
|
(package
|
|
|
|
(name "util-linux")
|
|
|
|
(version "2.21")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://kernel.org/linux/utils/"
|
|
|
|
name "/v" version "/"
|
|
|
|
name "-" version ".2" ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1rpgghf7n0zx0cdy8hibr41wvkm2qp1yvd8ab1rxr193l1jmgcir"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags '("--disable-use-tty-group")
|
|
|
|
#:phases (alist-cons-after
|
|
|
|
'install 'patch-chkdupexe
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(substitute* (string-append out "/bin/chkdupexe")
|
|
|
|
;; Allow 'patch-shebang' to do its work.
|
|
|
|
(("@PERL@") "/bin/perl"))))
|
|
|
|
%standard-phases)))
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 10:14:04 -05:00
|
|
|
(inputs `(("zlib" ,guix:zlib)
|
2012-12-03 18:13:02 -05:00
|
|
|
("ncurses" ,ncurses)
|
|
|
|
("perl" ,perl)))
|
|
|
|
(home-page "https://www.kernel.org/pub/linux/utils/util-linux/")
|
|
|
|
(synopsis
|
|
|
|
"util-linux is a random collection of utilities for the Linux kernel")
|
|
|
|
(description
|
|
|
|
"util-linux is a random collection of utilities for the Linux kernel.")
|
|
|
|
;; Note that util-linux doesn't use the same license for all the
|
|
|
|
;; code. GPLv2+ is the default license for a code without an
|
|
|
|
;; explicitly defined license.
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 10:14:04 -05:00
|
|
|
(license '(gpl3+ gpl2+ gpl2 lgpl2.0+
|
|
|
|
bsd-4 public-domain))))
|
2012-12-17 15:29:06 -05:00
|
|
|
|
|
|
|
(define-public usbutils
|
|
|
|
(package
|
|
|
|
(name "usbutils")
|
|
|
|
(version "006")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/"
|
|
|
|
"usbutils-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"03pd57vv8c6x0hgjqcbrxnzi14h8hcghmapg89p8k5zpwpkvbdfr"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("libusb" ,libusb) ("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://www.linux-usb.org/")
|
|
|
|
(synopsis
|
|
|
|
"Tools for working with USB devices, such as lsusb")
|
|
|
|
(description
|
|
|
|
"Tools for working with USB devices, such as lsusb.")
|
|
|
|
(license gpl2+)))
|