nixpkgs/pkgs/tools/archivers/zpaq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
842 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, perl }:
2019-07-10 20:02:19 +00:00
stdenv.mkDerivation rec {
pname = "zpaq";
2019-07-10 20:02:19 +00:00
version = "7.15";
2019-07-10 20:02:19 +00:00
src = fetchFromGitHub {
owner = "zpaq";
repo = "zpaq";
rev = version;
sha256 = "0v44rlg9gvwc4ggr2lhcqll8ppal3dk7zsg5bqwcc5lg3ynk2pz4";
2013-03-09 12:30:22 +00:00
};
nativeBuildInputs = [ perl /* for pod2man */ ];
CPPFLAGS = [ "-Dunix" ] ++
lib.optional (!stdenv.isi686 && !stdenv.isx86_64) "-DNOJIT";
CXXFLAGS = [ "-O3" "-DNDEBUG" ];
enableParallelBuilding = true;
makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Incremental journaling backup utility and archiver";
homepage = "http://mattmahoney.net/dc/zpaq.html";
license = licenses.gpl3Plus ;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
2013-03-09 12:30:22 +00:00
};
}