mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
zpaq{,d}: clarify; improve description; maintain
This commit is contained in:
parent
d04e57ea6a
commit
4ae6598c0b
2 changed files with 24 additions and 18 deletions
|
@ -9,9 +9,6 @@ let
|
|||
url="http://mattmahoney.net/dc/zpaq705.zip";
|
||||
sha256="0d1knq4f6693nvbwjx4wznb45hm4zyn4k88xvhynyk0dcbiy7ayq";
|
||||
};
|
||||
buildInputs = [
|
||||
unzip
|
||||
];
|
||||
isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD;
|
||||
isx86 = stdenv.isi686 || stdenv.isx86_64;
|
||||
compileFlags = with stdenv; ""
|
||||
|
@ -24,15 +21,20 @@ let
|
|||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
buildPhase = ''
|
||||
g++ ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so
|
||||
g++ ${compileFlags} -L. -L"$out/lib" -lzpaq zpaq.cpp -o zpaq
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"/{bin,include,lib,share/doc/zpaq}
|
||||
cp libzpaq.so "$out/lib"
|
||||
|
@ -40,12 +42,13 @@ stdenv.mkDerivation {
|
|||
cp libzpaq.h "$out/include"
|
||||
cp readme.txt "$out/share/doc/zpaq"
|
||||
'';
|
||||
meta = {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit (s) version;
|
||||
description = ''An archiver with backward compatibility of versions for decompression'';
|
||||
license = stdenv.lib.licenses.gpl3Plus ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
description = "Incremental journaling backup utility and archiver";
|
||||
license = licenses.gpl3Plus ;
|
||||
maintainers = with maintainers; [ raskin nckx ];
|
||||
platforms = platforms.linux;
|
||||
homepage = "http://mattmahoney.net/dc/zpaq.html";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,9 +9,6 @@ let
|
|||
url="http://mattmahoney.net/dc/zpaqd633.zip";
|
||||
sha256="00zgc4mcmsd3d4afgzmrp6ymcyy8gb9kap815d5a3f9zhhzkz4dx";
|
||||
};
|
||||
buildInputs = [
|
||||
unzip
|
||||
];
|
||||
isUnix = with stdenv; isLinux || isGNU || isDarwin || isFreeBSD || isOpenBSD;
|
||||
isx86 = stdenv.isi686 || stdenv.isx86_64;
|
||||
compileFlags = with stdenv; ""
|
||||
|
@ -24,15 +21,20 @@ let
|
|||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
buildPhase = ''
|
||||
g++ ${compileFlags} -fPIC --shared libzpaq.cpp -o libzpaq.so
|
||||
g++ ${compileFlags} -L. -L"$out/lib" -lzpaq zpaqd.cpp -o zpaqd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"/{bin,include,lib,share/doc/zpaq}
|
||||
cp libzpaq.so "$out/lib"
|
||||
|
@ -40,11 +42,12 @@ stdenv.mkDerivation {
|
|||
cp libzpaq.h "$out/include"
|
||||
cp readme_zpaqd.txt "$out/share/doc/zpaq"
|
||||
'';
|
||||
meta = {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit (s) version;
|
||||
description = ''ZPAQ archiver decompressor and algorithm development tool'';
|
||||
license = stdenv.lib.licenses.gpl3Plus ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
description = "ZPAQ archive decompressor and algorithm development tool";
|
||||
license = licenses.gpl3Plus ;
|
||||
maintainers = with maintainers; [ raskin nckx ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue