depot/third_party/nixpkgs/pkgs/tools/filesystems/mtdutils/default.nix
Default email 07b8fe0546 Project import generated by Copybara.
GitOrigin-RevId: 916ee862e87ac5ee2439f2fb7856386b4dc906ae
2021-03-12 08:09:13 +01:00

29 lines
903 B
Nix

{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, cmocka, acl, libuuid, lzo, zlib, zstd }:
stdenv.mkDerivation rec {
pname = "mtd-utils";
version = "2.1.2";
src = fetchurl {
url = "ftp://ftp.infradead.org/pub/${pname}/${pname}-${version}.tar.bz2";
sha256 = "sha256-itTF80cW1AZGqihySi9WFtMlpvEZJU+RTiaXbx926dY=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ] ++ lib.optional doCheck cmocka;
buildInputs = [ acl libuuid lzo zlib zstd ];
configureFlags = with lib; [
(enableFeature doCheck "unit-tests")
(enableFeature doCheck "tests")
];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
meta = with lib; {
description = "Tools for MTD filesystems";
license = licenses.gpl2Plus;
homepage = "http://www.linux-mtd.infradead.org/";
maintainers = with maintainers; [ viric superherointj ];
platforms = with platforms; linux;
};
}