2019-10-15 18:35:14 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, cmocka, acl, libuuid, lzo, zlib, zstd }:
|
2010-04-29 18:54:51 +01:00
|
|
|
|
2019-10-15 18:35:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mtd-utils";
|
2019-10-15 18:35:14 +01:00
|
|
|
version = "2.1.1";
|
2010-04-29 18:54:51 +01:00
|
|
|
|
2016-03-11 11:52:46 +00:00
|
|
|
src = fetchurl {
|
2019-10-15 18:35:14 +01:00
|
|
|
url = "ftp://ftp.infradead.org/pub/${pname}/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1lijl89l7hljx8xx70vrz9srd3h41v5gh4b0lvqnlv831yvyh5cd";
|
2010-04-29 18:54:51 +01:00
|
|
|
};
|
|
|
|
|
2019-10-15 18:35:14 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook cmocka pkgconfig ];
|
|
|
|
buildInputs = [ acl libuuid lzo zlib zstd ];
|
2010-04-29 18:54:51 +01:00
|
|
|
|
2019-10-15 18:35:14 +01:00
|
|
|
configureFlags = [ "--enable-unit-tests" "--enable-tests" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
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;
|
2019-10-15 18:35:14 +01:00
|
|
|
homepage = "http://www.linux-mtd.infradead.org/";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
2010-04-29 18:54:51 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|