From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2] gnu: Add mtd-utils. Date: Thu, 1 Sep 2016 14:33:57 +0200 Message-ID: <20160901123357.3233-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]:45966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfRCF-0004Vl-I0 for guix-devel@gnu.org; Thu, 01 Sep 2016 08:34:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfRCB-000814-0u for guix-devel@gnu.org; Thu, 01 Sep 2016 08:34:19 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:33950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfRCA-00080y-QV for guix-devel@gnu.org; Thu, 01 Sep 2016 08:34:14 -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: Add mtd-utils. * gnu/packages/linux.scm (mtd-utils): New variable. --- gnu/packages/linux.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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 aac2cd1..4c690a6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2924,3 +2924,39 @@ 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-" version ".tar.bz2")) + (sha256 + (base32 + "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax"))= )) + (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))) + #t))) + (delete 'configure)))) + (synopsis "MTD Flash Storage Utilities") + (description + "This package provides utilities for testing, partitioning +etc of flash storage.") + (home-page "http://www.linux-mtd.infradead.org/") + ;; mkfs.ubifs/crc16.h is GPLv2 + (license (list license:gpl2 license:mpl1.1 license:bsd-3)))) --------------2.9.1--