nixpkgs/pkgs/tools/filesystems/mtdutils/default.nix

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

42 lines
1.1 KiB
Nix
Raw Normal View History

2021-07-28 15:25:04 +00:00
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, cmocka, acl, libuuid, lzo, zlib, zstd }:
stdenv.mkDerivation rec {
pname = "mtd-utils";
2022-12-27 19:45:50 +00:00
version = "2.1.5";
2021-07-28 15:25:04 +00:00
src = fetchgit {
url = "git://git.infradead.org/mtd-utils.git";
rev = "v${version}";
2022-12-27 19:45:50 +00:00
sha256 = "sha256-Ph9Xjb2Nyo7l3T1pDgW2gnSJxn0pOC6uvCGUfCh0MXU=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ] ++ lib.optional doCheck cmocka;
buildInputs = [ acl libuuid lzo zlib zstd ];
2023-01-11 13:00:53 +00:00
enableParallelBuilding = true;
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;
outputs = [ "out" "dev" ];
postInstall = ''
mkdir -p $dev/lib
mv *.a $dev/lib/
mv include $dev/
'';
2021-03-11 19:04:42 +00:00
meta = with lib; {
description = "Tools for MTD filesystems";
2021-07-28 15:25:04 +00: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;
};
}