2019-07-10 18:12:38 +02:00
|
|
|
{ buildGoModule
|
2018-11-09 00:17:22 +01:00
|
|
|
, fetchFromGitHub
|
2020-03-21 10:24:00 +01:00
|
|
|
, stdenv
|
|
|
|
, Security
|
2018-11-09 00:17:22 +01:00
|
|
|
}:
|
|
|
|
|
2019-07-10 18:12:38 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "archiver";
|
2020-03-14 17:19:06 +01:00
|
|
|
version = "3.3.0";
|
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}";
|
2020-03-14 17:19:06 +01:00
|
|
|
sha256 = "1yr2jhidqvbwh1y08lpqaidwpr5yx3bhvznm5fc9pk64s7z5kq3h";
|
2018-11-09 00:17:22 +01:00
|
|
|
};
|
|
|
|
|
2020-03-14 17:19:06 +01:00
|
|
|
modSha256 = "1mrfqhd0zb78rlqlj2ncb0srwjfl7rzhy2p9mwa82pgysvlp08gv";
|
2018-11-09 00:17:22 +01:00
|
|
|
|
2020-03-21 10:24:00 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
meta = with stdenv.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";
|
2018-11-09 00:17:22 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|