summary refs log tree commit diff
path: root/pkgs/tools/archivers/zpaq/default.nix
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-12-31 04:50:57 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-12-31 05:04:05 +0100
commit4ae6598c0b4a4439939c47e20317150088c61bb6 (patch)
treea7b6b8b533480bc0da73ce7d2da37169e843ce72 /pkgs/tools/archivers/zpaq/default.nix
parentd04e57ea6a39992cb90d59b212576b090328ae60 (diff)
downloadnixpkgs-4ae6598c0b4a4439939c47e20317150088c61bb6.tar
nixpkgs-4ae6598c0b4a4439939c47e20317150088c61bb6.tar.gz
nixpkgs-4ae6598c0b4a4439939c47e20317150088c61bb6.tar.bz2
nixpkgs-4ae6598c0b4a4439939c47e20317150088c61bb6.tar.lz
nixpkgs-4ae6598c0b4a4439939c47e20317150088c61bb6.tar.xz
nixpkgs-4ae6598c0b4a4439939c47e20317150088c61bb6.tar.zst
nixpkgs-4ae6598c0b4a4439939c47e20317150088c61bb6.zip
zpaq{,d}: clarify; improve description; maintain
Diffstat (limited to 'pkgs/tools/archivers/zpaq/default.nix')
-rw-r--r--pkgs/tools/archivers/zpaq/default.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/tools/archivers/zpaq/default.nix b/pkgs/tools/archivers/zpaq/default.nix
index fddb3cbfb15..2b761df3863 100644
--- a/pkgs/tools/archivers/zpaq/default.nix
+++ b/pkgs/tools/archivers/zpaq/default.nix
@@ -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";
   };
 }