2021-08-05 21:33:18 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, cmocka, acl, libuuid, lzo, zlib, zstd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mtd-utils";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.infradead.org/mtd-utils.git";
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-lnvG2aJiihOyScmWZu0i8OYowmIMRBkgC3j67sdLkT4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ] ++ lib.optional doCheck cmocka;
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ acl libuuid lzo zlib zstd ];
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
configureFlags = with lib; [
|
|
|
|
(enableFeature doCheck "unit-tests")
|
|
|
|
(enableFeature doCheck "tests")
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for MTD filesystems";
|
2021-08-05 21:33:18 +00:00
|
|
|
downloadPage = "https://git.infradead.org/mtd-utils.git";
|
2021-03-12 07:09:13 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.linux-mtd.infradead.org/";
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ viric ];
|
2021-03-12 07:09:13 +00:00
|
|
|
platforms = with platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|