git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #23942 from mbrgm/restic

restic: init at 0.5.0

commit4707ac31f1a8406aaa6b8d892512fe59388349a5 authorMichael Raskin <7c6f434c@mail.ru> dateSat 18 Mar 2017, 20:01 (10 years ago) parent973fb152a65628
2 files changed+34
pkgs/tools/backup/restic/default.nix+32 pkgs/top-level/all-packages.nix+2
pkgs/tools/backup/restic/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "restic-${version}";
5+ version = "0.5.0";
6+
7+ goPackagePath = "github.com/restic/restic";
8+
9+ src = fetchFromGitHub {
10+ owner = "restic";
11+ repo = "restic";
12+ rev = "v${version}";
13+ sha256 = "0dj6zg4b00pwgs6nj7w5s0jxm6cfavd9kdcq0z4spypwdf211cgl";
14+ };
15+
16+ buildPhase = ''
17+ cd go/src/${goPackagePath}
18+ go run build.go
19+ '';
20+
21+ installPhase = ''
22+ mkdir -p $bin/bin/
23+ cp restic $bin/bin/
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ homepage = https://restic.github.io;
28+ description = "A backup program that is fast, efficient and secure";
29+ platforms = platforms.linux;
30+ license = licenses.bsd2;
31+ };
32+}
pkgs/top-level/all-packages.nix+2
@@ -10898,6 +10898,8 @@ with pkgs;
1089810898
1089910899 redstore = callPackage ../servers/http/redstore { };
1090010900
10901+ restic = callPackage ../tools/backup/restic { };
10902+
1090110903 restund = callPackage ../servers/restund {};
1090210904
1090310905 rethinkdb = callPackage ../servers/nosql/rethinkdb {