From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add mtd-utils. Date: Tue, 30 Aug 2016 01:24:14 +0200 Message-ID: <20160829232414.2538-1-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.9.1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beVul-00007w-2Q for guix-devel@gnu.org; Mon, 29 Aug 2016 19:24:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beVuf-00017z-5l for guix-devel@gnu.org; Mon, 29 Aug 2016 19:24:26 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:56111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beVue-00017k-VV for guix-devel@gnu.org; Mon, 29 Aug 2016 19:24:21 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------2.9.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable * gnu/packages/linux.scm (mtd-utils): New variable. --- gnu/packages/linux.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) --------------2.9.1 Content-Type: text/x-patch; name="0001-gnu-Add-mtd-utils.patch" Content-Disposition: attachment; filename="0001-gnu-Add-mtd-utils.patch" Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 07fd6e5..7ab9b3c 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -32,6 +32,7 @@ =20 (define-module (gnu packages linux) #:use-module (gnu packages) + #:use-module (gnu packages acl) #:use-module (gnu packages admin) #:use-module (gnu packages algebra) #:use-module (gnu packages attr) @@ -2898,3 +2899,37 @@ native Linux file system, and has been part of the= Linux kernel since version ;; The files src/key_mod/ecryptfs_key_mod_{openssl,pkcs11_helper,tsp= i}.c ;; grant additional permission to link with OpenSSL. (license license:gpl2+))) + +(define-public mtd-utils + (package + (name "mtd-utils") + (version "1.5.2") + (source (origin + (method url-fetch) + (uri (string-append + "ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-" versi= on ".tar.bz2")) + (sha256 + (base32 + "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax")) + (file-name (string-append "mtd-utils-" version)))) + (inputs + `(("acl" ,acl) + ("libuuid" ,util-linux) + ("lzo", lzo) + ("zlib" ,zlib))) + (build-system gnu-build-system) + (arguments + `(#:test-target "tests" + #:phases (modify-phases %standard-phases + (add-before 'build 'patch-installation-prefix + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* '("common.mk") + (("PREFIX=3D/usr") (string-append "PREFIX=3D" out)))))) + (delete 'configure)))) + (synopsis "MTD Flash Storage Utilities") + (description + "@code{mtd-utils} provides utilities for testing, partitioning +etc of flash storage.") + (home-page "http://www.linux-mtd.infradead.org/") + (license (list license:gpl2 license:mpl1.1 license:bsd-3)))) --------------2.9.1--