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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
949 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";
2022-02-12 13:11:56 +00:00
version = "2.1.4";
2021-07-28 16:25:04 +01:00
src = fetchgit {
url = "git://git.infradead.org/mtd-utils.git";
rev = "v${version}";
2022-02-12 13:11:56 +00:00
sha256 = "sha256-lnvG2aJiihOyScmWZu0i8OYowmIMRBkgC3j67sdLkT4=";
};
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-11-03 00:38:27 +00:00
maintainers = with maintainers; [ viric ];
2021-03-11 19:04:42 +00:00
platforms = with platforms; linux;
};
}