{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zpaqfranz";
version = "61.1";
src = fetchFromGitHub {
owner = "fcorbelli";
repo = "zpaqfranz";
rev = finalAttrs.version;
hash = "sha256-KmO1HKK48o2CHO5PX/QX31veO7mZ1wpglZCAF1wWcmI=";
};
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";
changelog = "https://github.com/fcorbelli/zpaqfranz/releases/tag/${finalAttrs.version}";
description = "Advanced multiversioned deduplicating archiver, with HW acceleration, encryption and paranoid-level tests";
mainProgram = "zpaqfranz";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.unix;
})