From 060714f28763d7be74cd5c39785e5d9d1e7153dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 29 Apr 2010 17:54:51 +0000 Subject: [PATCH] Adding mtdutils svn path=/nixpkgs/trunk/; revision=21436 --- pkgs/tools/filesystems/mtdutils/default.nix | 28 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/filesystems/mtdutils/default.nix diff --git a/pkgs/tools/filesystems/mtdutils/default.nix b/pkgs/tools/filesystems/mtdutils/default.nix new file mode 100644 index 000000000000..521c1452e1c7 --- /dev/null +++ b/pkgs/tools/filesystems/mtdutils/default.nix @@ -0,0 +1,28 @@ +{stdenv, fetchgit, libuuid, lzo, zlib, acl}: + +let + version = "v1.3.1"; +in +stdenv.mkDerivation { + name = "mtd-utils-${version}"; + + src = fetchgit { + url = git://git.infradead.org/mtd-utils.git; + rev = version; + sha256 = "0pjjs9x03bgvphqwlw99c2cpkpjsx0vkqi79vjl7fcb9pyrghgd1"; + }; + + preBuild = '' + makeFlags="DESTDIR=$out" + ''; + + buildInputs = [ libuuid lzo zlib acl ]; + + meta = { + description = "Tools for MTD filesystems"; + license = "GPLv2+"; + homepage = http://www.linux-mtd.infradead.org/; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 63ef03466fec..b7c854c37ae5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1109,6 +1109,10 @@ let inherit fetchurl stdenv gettext; }; + mtdutils = import ../tools/filesystems/mtdutils { + inherit stdenv fetchgit libuuid lzo zlib acl; + }; + multitran = recurseIntoAttrs (let inherit fetchurl stdenv help2man; in rec {