nixpkgs/pkgs/tools/backup/restic/rest-server.nix

28 lines
730 B
Nix
Raw Normal View History

2020-10-29 15:37:21 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-04-10 11:08:20 +02:00
2020-10-29 15:37:21 +01:00
buildGoModule rec {
pname = "restic-rest-server";
2020-10-29 15:37:21 +01:00
version = "0.10.0";
2018-04-10 11:08:20 +02:00
src = fetchFromGitHub {
owner = "restic";
repo = "rest-server";
rev = "v${version}";
2020-10-29 15:37:21 +01:00
sha256 = "1msa6mah76zfif5wp0129jjk2jlq5ff38p9p6d241mw45i1xjfy7";
2018-04-10 11:08:20 +02:00
};
2020-10-29 15:37:21 +01:00
vendorSha256 = "04w63sx7p0fm9xq0m7xab808az7lgw7i3p8basndszky8kgvxhmg";
2018-04-10 11:08:20 +02:00
2020-10-29 15:37:21 +01:00
preCheck = ''
substituteInPlace handlers_test.go --replace "TestJoin" "SkipTestJoin"
2018-04-10 11:08:20 +02: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 ];
};
}