nixpkgs/pkgs/applications/misc/archiver/default.nix

30 lines
748 B
Nix
Raw Normal View History

2019-07-10 16:12:38 +00:00
{ buildGoModule
2018-11-08 23:17:22 +00:00
, fetchFromGitHub
, lib
2018-11-08 23:17:22 +00:00
}:
2019-07-10 16:12:38 +00:00
buildGoModule rec {
pname = "archiver";
version = "3.3.2";
2018-11-08 23:17:22 +00:00
src = fetchFromGitHub {
owner = "mholt";
2019-07-10 16:12:38 +00:00
repo = pname;
2018-11-08 23:17:22 +00:00
rev = "v${version}";
sha256 = "1fi86g27c660g3mv9c5rfm0mmvh5q08704c19xnvrpwlg65glqrz";
2018-11-08 23:17:22 +00:00
};
vendorSha256 = "1rqhra3rfarq8f750zszkrm0jcsxa4sjbfpmcdlj5z000df699zq";
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev} -X main.date=unknown" ];
2018-11-08 23:17:22 +00:00
doCheck = false;
meta = with lib; {
2019-07-10 16:12:38 +00:00
description = "Easily create & extract archives, and compress & decompress files of various formats";
homepage = "https://github.com/mholt/archiver";
2018-11-08 23:17:22 +00:00
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
};
}