unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add mtd-utils.
Date: Tue, 30 Aug 2016 01:24:14 +0200	[thread overview]
Message-ID: <20160829232414.2538-1-dannym@scratchpost.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]


* gnu/packages/linux.scm (mtd-utils): New variable.
---
 gnu/packages/linux.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-mtd-utils.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-mtd-utils.patch", Size: 1990 bytes --]

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 @@
 
 (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,tspi}.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"))
+              (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=/usr") (string-append "PREFIX=" 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))))

             reply	other threads:[~2016-08-29 23:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29 23:24 Danny Milosavljevic [this message]
2016-08-30  8:08 ` [PATCH] gnu: Add mtd-utils Alex Kost
2016-08-30  8:39   ` Danny Milosavljevic
2016-08-31  7:24     ` Alex Kost
2016-08-31 20:59     ` Ludovic Courtès
2016-08-31 21:39       ` Danny Milosavljevic
2016-09-01 12:13         ` Ludovic Courtès
2016-09-02  7:53           ` Alex Kost
2016-09-02  8:07             ` Alex Vong
2016-09-02 12:49             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160829232414.2538-1-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).