2021-01-17 10:17:16 +01:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, 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";
|
2021-03-11 20:04:42 +01:00
|
|
|
version = "2.1.2";
|
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";
|
2021-03-11 20:04:42 +01:00
|
|
|
sha256 = "sha256-itTF80cW1AZGqihySi9WFtMlpvEZJU+RTiaXbx926dY=";
|
2010-04-29 19:54:51 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ] ++ 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
|
|
|
|
2021-03-11 20:04:42 +01:00
|
|
|
configureFlags = with lib; [
|
|
|
|
(enableFeature doCheck "unit-tests")
|
|
|
|
(enableFeature doCheck "tests")
|
2019-12-28 12:35:49 +01:00
|
|
|
];
|
2019-10-15 19:35:14 +02:00
|
|
|
|
2019-12-28 12:35:49 +01:00
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
2010-04-29 19:54:51 +02:00
|
|
|
|
2021-03-11 20:04:42 +01:00
|
|
|
meta = with lib; {
|
2010-04-29 19:54:51 +02:00
|
|
|
description = "Tools for MTD filesystems";
|
2021-03-11 20:04:42 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2019-10-15 19:35:14 +02:00
|
|
|
homepage = "http://www.linux-mtd.infradead.org/";
|
2021-03-11 20:04:42 +01:00
|
|
|
maintainers = with maintainers; [ viric superherointj ];
|
|
|
|
platforms = with platforms; linux;
|
2010-04-29 19:54:51 +02:00
|
|
|
};
|
|
|
|
}
|