mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
29 lines
750 B
Nix
29 lines
750 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "restic-rest-server";
|
|
version = "0.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "restic";
|
|
repo = "rest-server";
|
|
rev = "v${version}";
|
|
hash = "sha256-ninPODztNzvB2js9cuNAuExQLK/OGOu80ZNW0BPrdds=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-8x5qYvIX/C5BaewrTNVbIIadL+7XegbRUZiEDWmJM+c=";
|
|
|
|
preCheck = ''
|
|
substituteInPlace cmd/rest-server/main_test.go \
|
|
--replace "/tmp/restic" "/build/restic"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|