2010-04-29 18:54:51 +01:00
|
|
|
{stdenv, fetchgit, libuuid, lzo, zlib, acl}:
|
|
|
|
|
2014-09-22 18:56:49 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-04-29 18:54:51 +01:00
|
|
|
name = "mtd-utils-${version}";
|
2014-09-22 18:56:49 +01:00
|
|
|
version = "1.5.1";
|
2010-04-29 18:54:51 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://git.infradead.org/mtd-utils.git;
|
2012-09-16 21:41:32 +01:00
|
|
|
rev = "refs/tags/v" + version;
|
2014-09-22 18:56:49 +01:00
|
|
|
sha256 = "1bjx42pwl789ara63c672chvgvmqhkj4y132gajqih6naq71f8g7";
|
2010-04-29 18:54:51 +01:00
|
|
|
};
|
|
|
|
|
2010-09-17 19:57:38 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
|
2010-04-29 18:54:51 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libuuid lzo zlib acl ];
|
|
|
|
|
2012-01-06 22:42:10 +00:00
|
|
|
crossAttrs = {
|
|
|
|
makeFlags = "CC=${stdenv.cross.config}-gcc";
|
|
|
|
};
|
|
|
|
|
2010-04-29 18:54:51 +01:00
|
|
|
meta = {
|
|
|
|
description = "Tools for MTD filesystems";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-04-29 18:54:51 +01:00
|
|
|
homepage = http://www.linux-mtd.infradead.org/;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|