2019-07-10 16:12:38 +00:00
|
|
|
{ buildGoModule
|
2018-11-08 23:17:22 +00:00
|
|
|
, fetchFromGitHub
|
2020-03-27 07:33:21 +00:00
|
|
|
, lib
|
2018-11-08 23:17:22 +00:00
|
|
|
}:
|
|
|
|
|
2019-07-10 16:12:38 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "archiver";
|
2020-11-06 04:20:00 +00:00
|
|
|
version = "3.5.0";
|
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}";
|
2020-11-06 04:20:00 +00:00
|
|
|
sha256 = "0fdkqfs87svpijccz8m11gvby8pvmznq6fs9k94vbzak0kxhw1wg";
|
2018-11-08 23:17:22 +00:00
|
|
|
};
|
|
|
|
|
2020-11-06 04:20:00 +00:00
|
|
|
vendorSha256 = "0avnskay23mpl3qkyf1h75rr7szpsxis2bj5pplhwf8q8q0212xf";
|
2020-09-25 23:00:00 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|