Browse Source

distro: Add util-linux.

* distro/packages/linux.scm (util-linux): New variable.
Nikita Karetnikov 9 years ago
committed by Ludovic Courtès
1 changed files with 43 additions and 2 deletions
  1. +43

+ 43
- 2
distro/packages/linux.scm View File

@ -1,5 +1,6 @@
;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
;;; Copyright (C) 2012 Ludovic Courtès <>
;;; Copyright (C) 2012 Nikita Karetnikov <>
;;; This file is part of Guix.
@ -17,11 +18,13 @@
;;; along with Guix. If not, see <>.
(define-module (distro packages linux)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (distro packages compression)
#:use-module (distro packages flex)
#:use-module (distro packages ncurses)
#:use-module (distro packages perl)
#:use-module (distro packages ncurses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu))
(define-public linux-libre-headers
@ -128,3 +131,41 @@ at login. Local and dynamic reconfiguration are its key features")
use the proc filesystem. We're not about changing the world, but
providing the system administrator with some help in common tasks.")
(license "GPLv2+")))
(define-public util-linux
(name "util-linux")
(version "2.21")
(method url-fetch)
(uri (string-append "mirror://"
name "/v" version "/"
name "-" version ".2" ".tar.xz"))
(build-system gnu-build-system)
`(#: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"))))
(inputs `(("zlib" ,zlib)
("ncurses" ,ncurses)
("perl" ,perl)))
(home-page "")
"util-linux is a random collection of utilities for the Linux kernel")
"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.
(license '("GPLv3+" "GPLv2+" "GPLv2" "LGPLv2+"
"BSD-original" "Public Domain"))))