mtdutils: 1.5.2 -> 2.1.1 (#62805)

* mtdutils: 1.5.2 -> 2.1.0

http://lists.infradead.org/pipermail/linux-mtd/2019-March/088267.html

And the previous releases, hardcoded version in URL I think caused
this to be missed by auto-updaters for a while now.

1.5.2, FWIW in 2015:

http://lists.infradead.org/pipermail/linux-mtd/2015-August/060723.html

* mtd-utils: 2.1.0 -> 2.1.1

+ cleanup
+ enable tests and parallel building
+ add zstd support
This commit is contained in:
Will Dietz 2019-10-15 12:35:14 -05:00 committed by Renaud
parent 9752932de9
commit 62e4a35fa7

View File

@ -1,25 +1,27 @@
{ stdenv, fetchurl, libuuid, lzo, zlib, acl }:
{ stdenv, fetchurl, autoreconfHook, pkgconfig, cmocka, acl, libuuid, lzo, zlib, zstd }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "mtd-utils";
version = "1.5.2";
version = "2.1.1";
src = fetchurl {
url = ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.5.2.tar.bz2;
sha256 = "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax";
url = "ftp://ftp.infradead.org/pub/${pname}/${pname}-${version}.tar.bz2";
sha256 = "1lijl89l7hljx8xx70vrz9srd3h41v5gh4b0lvqnlv831yvyh5cd";
};
patchPhase = ''
sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
'';
nativeBuildInputs = [ autoreconfHook cmocka pkgconfig ];
buildInputs = [ acl libuuid lzo zlib zstd ];
buildInputs = [ libuuid lzo zlib acl ];
configureFlags = [ "--enable-unit-tests" "--enable-tests" ];
enableParallelBuilding = true;
doCheck = true;
meta = {
description = "Tools for MTD filesystems";
license = stdenv.lib.licenses.gpl2Plus;
homepage = http://www.linux-mtd.infradead.org/;
maintainers = with stdenv.lib.maintainers; [viric];
homepage = "http://www.linux-mtd.infradead.org/";
maintainers = with stdenv.lib.maintainers; [ viric ];
platforms = with stdenv.lib.platforms; linux;
};
}