1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

mtdutils: updating, and making them build

The previous 1.3.1 wasn't properly fetched by fetchgit, somehow.
This commit is contained in:
Lluís Batlle i Rossell 2012-09-16 22:41:32 +02:00
parent 6a63479899
commit 029aabe7f3

View file

@ -1,22 +1,19 @@
{stdenv, fetchgit, libuuid, lzo, zlib, acl}:
let
version = "1.3.1";
version = "1.5.0";
in
stdenv.mkDerivation {
name = "mtd-utils-${version}";
src = fetchgit {
url = git://git.infradead.org/mtd-utils.git;
rev = "v" + version;
sha256 = "0pjjs9x03bgvphqwlw99c2cpkpjsx0vkqi79vjl7fcb9pyrghgd1";
rev = "refs/tags/v" + version;
sha256 = "cc645c0ec28083431b11f3b38f9f7759378d89e11047a883529f703e1b6c1cce";
};
patchPhase = ''
sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
# gcc 4.5.1 issues a warning where 4.4.3 did not
sed -i -e s/-Werror// ubi-utils/old-utils/Makefile
'';
buildInputs = [ libuuid lzo zlib acl ];