diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/zp/zpaqfranz/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/zp/zpaqfranz/package.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/zp/zpaqfranz/package.nix b/nixpkgs/pkgs/by-name/zp/zpaqfranz/package.nix new file mode 100644 index 000000000000..158dbade94e7 --- /dev/null +++ b/nixpkgs/pkgs/by-name/zp/zpaqfranz/package.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, fetchFromGitHub +, installShellFiles +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "zpaqfranz"; + version = "59.2"; + + src = fetchFromGitHub { + owner = "fcorbelli"; + repo = "zpaqfranz"; + rev = finalAttrs.version; + hash = "sha256-NPkaOmjeLPznG/kY2cF9ROA7SzWEeKKCcPhP91PnYOk="; + }; + + 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"; + mainProgram = "zpaqfranz"; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.unix; + }; +}) |