3
0
Fork 0
forked from mirrors/nixpkgs

zpaq: 7.11 -> 7.12

Faster extract. Removes -encrypt (combined with -repack).

Also, we now correctly follow upstream's versioning and no longer
multiply the version number by 100. You may need to update manually.
This commit is contained in:
Tobias Geerinckx-Rice 2016-04-28 13:26:39 +02:00
parent 298d47ba01
commit ae8dce8d16
No known key found for this signature in database
GPG key ID: 91CCDB9B48541B99

View file

@ -1,20 +1,13 @@
{ stdenv, fetchurl, perl, unzip }:
let
s = # Generated upstream information
rec {
baseName="zpaq";
version="711";
name="${baseName}-${version}";
hash="0kva9xn3rhm2xpbbq3yrx3c9y150fw434ayd82fzhr24nsjjaxsf";
url="http://mattmahoney.net/dc/zpaq711.zip";
sha256="0kva9xn3rhm2xpbbq3yrx3c9y150fw434ayd82fzhr24nsjjaxsf";
};
in
stdenv.mkDerivation {
inherit (s) name version;
stdenv.mkDerivation rec {
name = "zpaq-${version}";
version = "7.12";
src = fetchurl {
inherit (s) url sha256;
src = let
mungedVersion = with stdenv.lib; concatStrings (splitString "." version);
in fetchurl {
sha256 = "1lgkxiinam80pqqyvs3x845k6kf0wgw121vz0gr8za4blb756n30";
url = "http://mattmahoney.net/dc/zpaq${mungedVersion}.zip";
};
sourceRoot = ".";
@ -39,11 +32,10 @@ stdenv.mkDerivation {
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
inherit (s) version;
description = "Incremental journaling backup utility and archiver";
homepage = http://mattmahoney.net/dc/zpaq.html;
license = licenses.gpl3Plus ;
maintainers = with maintainers; [ raskin nckx ];
platforms = platforms.linux;
homepage = "http://mattmahoney.net/dc/zpaq.html";
};
}