5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
46 lines
1,016 B
Nix
46 lines
1,016 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "zpaqfranz";
|
|
version = "58.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fcorbelli";
|
|
repo = "zpaqfranz";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-eBokpah7j3QQChprvjeigt2/sEpkq6ZS4rQhIP5cAYo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
eval $CXX $CXXFLAGS $CPPFLAGS $LDFLAGS -Dunix zpaqfranz.cpp -o zpaqfranz -pthread
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 zpaqfranz -t $out/bin/
|
|
installManPage man/zpaqfranz.1
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/fcorbelli/zpaqfranz";
|
|
description = "Advanced multiversioned deduplicating archiver, with HW acceleration, encryption and paranoid-level tests";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|