Update lrzip

This commit is contained in:
Michael Raskin 2013-03-09 15:02:44 +04:00
parent 87ec597ce7
commit b494b3b468
2 changed files with 12 additions and 10 deletions

View File

@ -1,26 +1,20 @@
{stdenv, fetchurl, zlib, lzo, bzip2, nasm, perl}: {stdenv, fetchurl, zlib, lzo, bzip2, nasm, perl}:
let
md5fix = fetchurl {
url = "https://github.com/ckolivas/lrzip/commit/9430b6ff4a58adb69ef4cf74f1245fd5b3b313dd.patch";
sha256 = "084x4wi3mamcxphzwf43iw287v1ylrk0xjghg6b5k6vgm9gkqlx8";
};
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "lrzip-0.612"; version = "0.614";
name = "lrzip-${version}";
src = fetchurl { src = fetchurl {
url = "http://ck.kolivas.org/apps/lrzip/${name}.tar.bz2"; url = "http://ck.kolivas.org/apps/lrzip/${name}.tar.bz2";
sha256 = "15rfqpc4xj7wbv117mr2g9npxnrlmqqj97mhxqfpy8360ys9yc1c"; sha256 = "16i6mz2z6gx8xiva7zb0j78yvkwq1bjbdkl7w3i10195ll097ad8";
}; };
buildInputs = [ zlib lzo bzip2 nasm perl ]; buildInputs = [ zlib lzo bzip2 nasm perl ];
patches = [ md5fix ];
meta = { meta = {
homepage = http://ck.kolivas.org/apps/lrzip/; homepage = http://ck.kolivas.org/apps/lrzip/;
description = "The CK LRZIP compression program (LZMA + RZIP)"; description = "The CK LRZIP compression program (LZMA + RZIP)";
license = "GPLv2+"; license = "GPLv2+";
inherit version;
}; };
} }

View File

@ -0,0 +1,8 @@
url http://ck.kolivas.org/apps/lrzip/
version_link '[.]tar[.]bz2$'
do_overwrite () {
ensure_hash
set_var_value version "$CURRENT_VERSION"
set_var_value sha256 "$CURRENT_HASH"
}