depot/third_party/nixpkgs/pkgs/by-name/pz/pzip/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
741 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, unzip
}:
buildGoModule rec {
pname = "pzip";
version = "0.2.0";
src = fetchFromGitHub {
owner = "ybirader";
repo = "pzip";
rev = "v${version}";
hash = "sha256-bb2TSSyA7TwgoV53M/7WkNcTq8F0EjCA7ObHfnGL9l0=";
};
vendorHash = "sha256-MRZlv4eN1Qbu+QXr//YexTDYSK4pCXAPO7VvGqZhjho=";
nativeBuildInputs = [
unzip
];
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Fast concurrent zip archiver and extractor";
homepage = "https://github.com/ybirader/pzip";
changelog = "https://github.com/ybirader/pzip/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
mainProgram = "pzip";
};
}