ZPAQ: 655 → 660

This commit is contained in:
Michael Raskin 2014-12-21 11:14:06 +03:00
parent 1317dd7e62
commit ed19e6755f

View File

@ -3,11 +3,11 @@ let
s = # Generated upstream information
rec {
baseName="zpaq";
version="655";
version="660";
name="${baseName}-${version}";
hash="09wjss6vbziwvfmcngb64xd2yih79z1ypgrn4ni7ag8cifx9257c";
url="http://mattmahoney.net/dc/zpaq655.zip";
sha256="09wjss6vbziwvfmcngb64xd2yih79z1ypgrn4ni7ag8cifx9257c";
hash="1p6b56zf676bkfc20lxhjh9bsgh92z6bln7b0kxibh8s8aa7vzjq";
url="http://mattmahoney.net/dc/zpaq660.zip";
sha256="1p6b56zf676bkfc20lxhjh9bsgh92z6bln7b0kxibh8s8aa7vzjq";
};
buildInputs = [
unzip
@ -29,14 +29,14 @@ stdenv.mkDerivation {
};
sourceRoot = ".";
buildPhase = ''
g++ -shared -O3 libzpaq.cpp ${compileFlags} -o libzpaq.so
g++ -O3 -L. -L"$out/lib" -lzpaq divsufsort.c zpaq.cpp -o zpaq
g++ -O3 -march=native -Dunix libzpaq.cpp -pthread --shared -o libzpaq.so -fPIC
g++ -O3 -march=native -Dunix zpaq.cpp -lzpaq -L. -L"$out/lib" -pthread -o zpaq
'';
installPhase = ''
mkdir -p "$out"/{bin,include,lib,share/doc/zpaq}
cp libzpaq.so "$out/lib"
cp zpaq "$out/bin"
cp libzpaq.h divsufsort.h "$out/include"
cp libzpaq.h "$out/include"
cp readme.txt "$out/share/doc/zpaq"
'';
meta = {