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