2019-07-10 18:12:38 +02:00
|
|
|
{ buildGoModule
|
2018-11-09 00:17:22 +01:00
|
|
|
, fetchFromGitHub
|
2020-03-27 08:33:21 +01:00
|
|
|
, lib
|
2018-11-09 00:17:22 +01:00
|
|
|
}:
|
|
|
|
|
2019-07-10 18:12:38 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "archiver";
|
2021-11-01 05:20:00 +01:00
|
|
|
version = "3.5.1";
|
2018-11-09 00:17:22 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mholt";
|
2019-07-10 18:12:38 +02:00
|
|
|
repo = pname;
|
2018-11-09 00:17:22 +01:00
|
|
|
rev = "v${version}";
|
2021-11-01 05:20:00 +01:00
|
|
|
sha256 = "1py186hfy4p69wghqmbsyi1r3xvw1nyl55pz8f97a5qhmwxb3mwp";
|
2018-11-09 00:17:22 +01:00
|
|
|
};
|
|
|
|
|
2021-11-01 05:20:00 +01:00
|
|
|
vendorSha256 = "1y4v95z1ga111g3kdv5wvyikwifl25f36firf1i916rxli6f6g5i";
|
2020-09-26 01:00:00 +02:00
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" "-X main.date=unknown" ];
|
2018-11-09 00:17:22 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2019-07-10 18:12:38 +02:00
|
|
|
description = "Easily create & extract archives, and compress & decompress files of various formats";
|
|
|
|
homepage = "https://github.com/mholt/archiver";
|
2021-07-31 08:17:45 +02:00
|
|
|
mainProgram = "arc";
|
2018-11-09 00:17:22 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|