nixpkgs/pkgs/tools/filesystems/mtdutils/default.nix
Lluís Batlle i Rossell 83bfd42534 Fixing the mtdutils package (install to proper LSB like directories, and remove 'v' in front
of the version, which annoyed nix-env name matching)

svn path=/nixpkgs/trunk/; revision=23839
2010-09-17 18:57:38 +00:00

29 lines
668 B
Nix

{stdenv, fetchgit, libuuid, lzo, zlib, acl}:
let
version = "1.3.1";
in
stdenv.mkDerivation {
name = "mtd-utils-${version}";
src = fetchgit {
url = git://git.infradead.org/mtd-utils.git;
rev = "v" + version;
sha256 = "0pjjs9x03bgvphqwlw99c2cpkpjsx0vkqi79vjl7fcb9pyrghgd1";
};
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 = "GPLv2+";
homepage = http://www.linux-mtd.infradead.org/;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}