2022-05-13 07:36:32 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2018-04-10 09:08:20 +00:00
|
|
|
|
2020-10-29 14:37:21 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "restic-rest-server";
|
2022-02-19 05:30:36 +00:00
|
|
|
version = "0.11.0";
|
2018-04-10 09:08:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-05-13 19:22:42 +00:00
|
|
|
owner = "restic";
|
|
|
|
repo = "rest-server";
|
2018-04-10 09:08:20 +00:00
|
|
|
rev = "v${version}";
|
2022-02-19 05:30:36 +00:00
|
|
|
hash = "sha256-ninPODztNzvB2js9cuNAuExQLK/OGOu80ZNW0BPrdds=";
|
2018-04-10 09:08:20 +00:00
|
|
|
};
|
|
|
|
|
2022-02-19 05:30:36 +00:00
|
|
|
vendorSha256 = "sha256-8x5qYvIX/C5BaewrTNVbIIadL+7XegbRUZiEDWmJM+c=";
|
2018-04-10 09:08:20 +00:00
|
|
|
|
2022-05-13 07:36:32 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "backport_rest-server_tests_os.TempDir.patch";
|
2022-05-13 19:22:42 +00:00
|
|
|
url = "https://github.com/restic/rest-server/commit/a87a50ad114bdaddc895413396438df6ea0affbb.patch";
|
2022-05-13 07:36:32 +00:00
|
|
|
sha256 = "sha256-O6ENxTK2fCVTZZKTFHrvZ+3dT8TbgbIE0o3sYE/RUqc=";
|
|
|
|
})
|
|
|
|
|
|
|
|
];
|
2018-04-10 09:08:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A high performance HTTP server that implements restic's REST backend API";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|