mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
029aabe7f3
The previous 1.3.1 wasn't properly fetched by fetchgit, somehow.
33 lines
762 B
Nix
33 lines
762 B
Nix
{stdenv, fetchgit, libuuid, lzo, zlib, acl}:
|
|
|
|
let
|
|
version = "1.5.0";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "mtd-utils-${version}";
|
|
|
|
src = fetchgit {
|
|
url = git://git.infradead.org/mtd-utils.git;
|
|
rev = "refs/tags/v" + version;
|
|
sha256 = "cc645c0ec28083431b11f3b38f9f7759378d89e11047a883529f703e1b6c1cce";
|
|
};
|
|
|
|
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 = "GPLv2+";
|
|
homepage = http://www.linux-mtd.infradead.org/;
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|