depot/third_party/nixpkgs/pkgs/tools/filesystems/mtdutils/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
958 B
Nix

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