3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/mtdutils/default.nix

26 lines
672 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libuuid, lzo, zlib, acl }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "mtd-utils";
version = "1.5.2";
src = fetchurl {
url = ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.5.2.tar.bz2;
sha256 = "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax";
};
patchPhase = ''
sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
'';
buildInputs = [ libuuid lzo zlib acl ];
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;
};
}