restic: init at 0.5.0
This commit is contained in:
parent
a8f269d014
commit
2a65628826
32
pkgs/tools/backup/restic/default.nix
Normal file
32
pkgs/tools/backup/restic/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
||||||
|
|
||||||
|
buildGoPackage rec {
|
||||||
|
name = "restic-${version}";
|
||||||
|
version = "0.5.0";
|
||||||
|
|
||||||
|
goPackagePath = "github.com/restic/restic";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "restic";
|
||||||
|
repo = "restic";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0dj6zg4b00pwgs6nj7w5s0jxm6cfavd9kdcq0z4spypwdf211cgl";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
cd go/src/${goPackagePath}
|
||||||
|
go run build.go
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $bin/bin/
|
||||||
|
cp restic $bin/bin/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://restic.github.io;
|
||||||
|
description = "A backup program that is fast, efficient and secure";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
license = licenses.bsd2;
|
||||||
|
};
|
||||||
|
}
|
@ -10851,6 +10851,8 @@ with pkgs;
|
|||||||
|
|
||||||
redstore = callPackage ../servers/http/redstore { };
|
redstore = callPackage ../servers/http/redstore { };
|
||||||
|
|
||||||
|
restic = callPackage ../tools/backup/restic { };
|
||||||
|
|
||||||
restund = callPackage ../servers/restund {};
|
restund = callPackage ../servers/restund {};
|
||||||
|
|
||||||
rethinkdb = callPackage ../servers/nosql/rethinkdb {
|
rethinkdb = callPackage ../servers/nosql/rethinkdb {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user