2019-10-15 19:35:14 +02:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, cmocka, acl, libuuid, lzo, zlib, zstd }:
|
2010-04-29 19:54:51 +02:00
|
|
|
|
2019-10-15 19:35:14 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mtd-utils";
|
2019-10-15 19:35:14 +02:00
|
|
|
version = "2.1.1";
|
2010-04-29 19:54:51 +02:00
|
|
|
|
2016-03-11 12:52:46 +01:00
|
|
|
src = fetchurl {
|
2019-10-15 19:35:14 +02:00
|
|
|
url = "ftp://ftp.infradead.org/pub/${pname}/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1lijl89l7hljx8xx70vrz9srd3h41v5gh4b0lvqnlv831yvyh5cd";
|
2010-04-29 19:54:51 +02:00
|
|
|
};
|
|
|
|
|
2019-12-28 12:35:49 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ] ++ stdenv.lib.optional doCheck cmocka;
|
2019-10-15 19:35:14 +02:00
|
|
|
buildInputs = [ acl libuuid lzo zlib zstd ];
|
2010-04-29 19:54:51 +02:00
|
|
|
|
2019-12-28 12:35:49 +01:00
|
|
|
configureFlags = [
|
|
|
|
(stdenv.lib.enableFeature doCheck "unit-tests")
|
|
|
|
(stdenv.lib.enableFeature doCheck "tests")
|
|
|
|
];
|
2019-10-15 19:35:14 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-12-28 12:35:49 +01:00
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
2010-04-29 19:54:51 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tools for MTD filesystems";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2019-10-15 19:35:14 +02:00
|
|
|
homepage = "http://www.linux-mtd.infradead.org/";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
2010-04-29 19:54:51 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|