1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 12:02:47 +00:00
nixpkgs/pkgs/tools/archivers/zpaq/default.nix

38 lines
937 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, perl, unzip }:
2019-07-10 21:02:19 +01:00
stdenv.mkDerivation rec {
pname = "zpaq";
2019-07-10 21:02:19 +01:00
version = "7.15";
2019-07-10 21:02:19 +01:00
src = fetchFromGitHub {
owner = "zpaq";
repo = "zpaq";
rev = version;
sha256 = "0v44rlg9gvwc4ggr2lhcqll8ppal3dk7zsg5bqwcc5lg3ynk2pz4";
2013-03-09 12:30:22 +00:00
};
nativeBuildInputs = [ perl /* for pod2man */ unzip ];
preBuild = let
CPPFLAGS = with stdenv; ""
+ (lib.optionalString (!isi686 && !isx86_64) "-DNOJIT ")
+ "-Dunix";
CXXFLAGS = "-O3 -DNDEBUG";
in ''
buildFlagsArray=( "CPPFLAGS=${CPPFLAGS}" "CXXFLAGS=${CXXFLAGS}" )
2013-03-09 12:30:22 +00:00
'';
enableParallelBuilding = true;
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;
2016-09-26 14:44:11 +01:00
inherit version;
2013-03-09 12:30:22 +00:00
};
}