1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/filesystems/mtdutils/default.nix

31 lines
767 B
Nix
Raw Normal View History

{stdenv, fetchgit, libuuid, lzo, zlib, acl}:
2014-09-22 18:56:49 +01:00
stdenv.mkDerivation rec {
name = "mtd-utils-${version}";
2014-09-22 18:56:49 +01:00
version = "1.5.1";
src = fetchgit {
url = git://git.infradead.org/mtd-utils.git;
rev = "refs/tags/v" + version;
2014-09-22 18:56:49 +01:00
sha256 = "1bjx42pwl789ara63c672chvgvmqhkj4y132gajqih6naq71f8g7";
};
patchPhase = ''
sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
'';
buildInputs = [ libuuid lzo zlib acl ];
crossAttrs = {
makeFlags = "CC=${stdenv.cross.config}-gcc";
};
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;
};
}