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

30 lines
903 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, cmocka, acl, libuuid, lzo, zlib, zstd }:
stdenv.mkDerivation rec {
pname = "mtd-utils";
2021-03-11 20:04:42 +01:00
version = "2.1.2";
src = fetchurl {
url = "ftp://ftp.infradead.org/pub/${pname}/${pname}-${version}.tar.bz2";
2021-03-11 20:04:42 +01:00
sha256 = "sha256-itTF80cW1AZGqihySi9WFtMlpvEZJU+RTiaXbx926dY=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ] ++ lib.optional doCheck cmocka;
buildInputs = [ acl libuuid lzo zlib zstd ];
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-12-28 12:35:49 +01:00
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
2021-03-11 20:04:42 +01:00
meta = with lib; {
description = "Tools for MTD filesystems";
2021-03-11 20:04:42 +01:00
license = licenses.gpl2Plus;
homepage = "http://www.linux-mtd.infradead.org/";
2021-03-11 20:04:42 +01:00
maintainers = with maintainers; [ viric superherointj ];
platforms = with platforms; linux;
};
}