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";
|
2021-11-01 04:20:00 +00:00
|
|
|
version = "3.5.1";
|
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}";
|
2023-09-19 04:18:24 +00:00
|
|
|
hash = "sha256-l9exOq8QF3WSQ/+WQr0NfPeRQ/R6VQwfT+YS76BBwd8=";
|
2018-11-08 23:17:22 +00:00
|
|
|
};
|
|
|
|
|
2023-09-19 04:18:24 +00:00
|
|
|
vendorHash = "sha256-sTzjTKQ9m5BicDk6M1wR1EU+o9+87DbHCyGoF35Jm/g=";
|
2020-09-25 23:00:00 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
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";
|
2021-07-31 06:17:45 +00:00
|
|
|
mainProgram = "arc";
|
2018-11-08 23:17:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|