2010-04-29 19:54:51 +02:00
|
|
|
{stdenv, fetchgit, libuuid, lzo, zlib, acl}:
|
|
|
|
|
|
|
|
let
|
2010-09-17 20:57:38 +02:00
|
|
|
version = "1.3.1";
|
2010-04-29 19:54:51 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "mtd-utils-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://git.infradead.org/mtd-utils.git;
|
2010-09-17 20:57:38 +02:00
|
|
|
rev = "v" + version;
|
2010-04-29 19:54:51 +02:00
|
|
|
sha256 = "0pjjs9x03bgvphqwlw99c2cpkpjsx0vkqi79vjl7fcb9pyrghgd1";
|
|
|
|
};
|
|
|
|
|
2010-09-17 20:57:38 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
|
2010-10-03 11:12:54 +02:00
|
|
|
|
|
|
|
# gcc 4.5.1 issues a warning where 4.4.3 did not
|
|
|
|
sed -i -e s/-Werror// ubi-utils/old-utils/Makefile
|
2010-04-29 19:54:51 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libuuid lzo zlib acl ];
|
|
|
|
|
2012-01-06 23:42:10 +01:00
|
|
|
crossAttrs = {
|
|
|
|
makeFlags = "CC=${stdenv.cross.config}-gcc";
|
|
|
|
};
|
|
|
|
|
2010-04-29 19:54:51 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|