3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/mtdutils/default.nix

32 lines
962 B
Nix
Raw Normal View History

2021-07-28 16:25:04 +01:00
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, cmocka, acl, libuuid, lzo, zlib, zstd }:
stdenv.mkDerivation rec {
pname = "mtd-utils";
2021-07-28 16:25:04 +01:00
version = "2.1.3";
2021-07-28 16:25:04 +01:00
src = fetchgit {
url = "git://git.infradead.org/mtd-utils.git";
rev = "v${version}";
sha256 = "sha256-w20Zp1G0WbNvEJwqpLw2f8VvmW8ZBEL0GSHze8qpPWg";
};
nativeBuildInputs = [ autoreconfHook pkg-config ] ++ lib.optional doCheck cmocka;
buildInputs = [ acl libuuid lzo zlib zstd ];
2021-03-11 19:04:42 +00:00
configureFlags = with lib; [
(enableFeature doCheck "unit-tests")
(enableFeature doCheck "tests")
2019-12-28 11:35:49 +00:00
];
2019-12-28 11:35:49 +00:00
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
2021-03-11 19:04:42 +00:00
meta = with lib; {
description = "Tools for MTD filesystems";
2021-07-28 16:25:04 +01:00
downloadPage = "https://git.infradead.org/mtd-utils.git";
2021-03-11 19:04:42 +00:00
license = licenses.gpl2Plus;
homepage = "http://www.linux-mtd.infradead.org/";
2021-03-11 19:04:42 +00:00
maintainers = with maintainers; [ viric superherointj ];
platforms = with platforms; linux;
};
}