restic-rest-server: init at 0.9.7
This commit is contained in:
parent
dd26754285
commit
1c5f62a1a3
2 changed files with 34 additions and 0 deletions
32
pkgs/tools/backup/restic/rest-server.nix
Normal file
32
pkgs/tools/backup/restic/rest-server.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "restic-rest-server-${version}";
|
||||
version = "0.9.7";
|
||||
|
||||
goPackagePath = "github.com/restic/rest-server";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "restic";
|
||||
repo = "rest-server";
|
||||
rev = "v${version}";
|
||||
sha256 = "1g47ly1pxwn0znbj3v5j6kqhn66d4wf0d5gjqzig75pzknapv8qj";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
cd go/src/${goPackagePath}
|
||||
go run build.go
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dt $bin/bin rest-server
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -12769,6 +12769,8 @@ with pkgs;
|
|||
|
||||
restic = callPackage ../tools/backup/restic { };
|
||||
|
||||
restic-rest-server = callPackage ../tools/backup/restic/rest-server.nix { };
|
||||
|
||||
restya-board = callPackage ../servers/web-apps/restya-board { };
|
||||
|
||||
rethinkdb = callPackage ../servers/nosql/rethinkdb {
|
||||
|
|
Loading…
Reference in a new issue