depot/pkgs/by-name/zp/zpaqfranz/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

48 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zpaqfranz";
version = "60.7";
src = fetchFromGitHub {
owner = "fcorbelli";
repo = "zpaqfranz";
rev = finalAttrs.version;
hash = "sha256-tlMbCHlrGPvRSqdfItdCkxLPm1LtVWcGTQMUoZTCsIg=";
};
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; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
})