From aa8bd9692fe769ef330b8b6fc3675c5390ccb017 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Sun, 2 Dec 2012 04:22:33 +0000 Subject: [PATCH] distro: Add util-linux. * distro/packages/util-linux.scm: New file. * Makefile.am (MODULES): Add it. --- Makefile.am | 1 + distro/packages/util-linux.scm | 52 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 distro/packages/util-linux.scm diff --git a/Makefile.am b/Makefile.am index 8bb3b55..4ecd645 100644 --- a/Makefile.am +++ b/Makefile.am @@ -82,6 +82,7 @@ MODULES = \ distro/packages/system.scm \ distro/packages/texinfo.scm \ distro/packages/time.scm \ + distro/packages/util-linux.scm \ distro/packages/wget.scm \ distro/packages/which.scm \ distro/packages/zile.scm diff --git a/distro/packages/util-linux.scm b/distro/packages/util-linux.scm new file mode 100644 index 0000000..ad6b03b --- /dev/null +++ b/distro/packages/util-linux.scm @@ -0,0 +1,52 @@ +;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*- +;;; Copyright (C) 2012 Nikita Karetnikov +;;; +;;; This file is part of Guix. +;;; +;;; 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. +;;; +;;; 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 Guix. If not, see . + +(define-module (distro packages util-linux) + #:use-module (distro packages compression) + #:use-module (distro packages ncurses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(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"))) + (inputs `(("zlib" ,zlib) + ("ncurses" ,ncurses))) + (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. + (license '("GPLv3+" "GPLv2+" "GPLv2" "LGPLv2+" + "BSD-original" "Expat" "Public Domain")))) \ No newline at end of file -- 1.7.5.4