11{
22 lib ,
3- buildGo123Module ,
3+ buildGoModule ,
44 fetchFromGitHub ,
55 installShellFiles ,
66 restic ,
99 resticprofile ,
1010} :
1111
12- buildGo123Module rec {
12+ buildGoModule rec {
1313 pname = "resticprofile" ;
14- version = "0.29 .1" ;
14+ version = "0.30 .1" ;
1515
1616 src = fetchFromGitHub {
1717 owner = "creativeprojects" ;
1818 repo = "resticprofile" ;
1919 tag = "v${ version } " ;
20- hash = "sha256-6s58rI+YMu6sCV8UsG9GOdF46Br3cMWIUqciVd2d4dY =" ;
20+ hash = "sha256-Pg7rqllNRc/pN5VSgy7KiHQ7V7xOxiGM5fk5Y6+OBjw =" ;
2121 } ;
2222
2323 postPatch = ''
@@ -32,7 +32,7 @@ buildGo123Module rec {
3232
3333 '' ;
3434
35- vendorHash = "sha256-N39zPGos5EYRXGylsHFSjJ4EcQ9jahBOGV8xn7fF7gc =" ;
35+ vendorHash = "sha256-M9S6F/Csz7HnOq8PSWjpENKm1704kVx9zDts1ieraTE =" ;
3636
3737 ldflags = [
3838 "-X main.version=${ version } "
@@ -44,14 +44,16 @@ buildGo123Module rec {
4444 nativeBuildInputs = [ installShellFiles ] ;
4545
4646 preCheck = ''
47- rm battery_test.go # tries to get battery data
48- rm update_test.go # tries to use network
47+ rm batt/battery_test.go # tries to get battery data
48+ rm commands_test.go # tries to use systemctl
49+ rm config/path_test.go # expects normal environment
4950 rm lock/lock_test.go # needs ping
5051 rm preventsleep/caffeinate_test.go # tries to communicate with dbus
5152 rm priority/ioprio_test.go # tries to set nice(2) IO priority
5253 rm restic/downloader_test.go # tries to use network
53- rm schedule/schedule_test.go # tries to use systemctl
54- rm config/path_test.go # expects normal environment
54+ rm schedule/*_test.go # tries to use systemctl
55+ rm update_test.go # tries to use network
56+ rm user/user_test.go # expects normal environment
5557 rm util/tempdir_test.go # expects normal environment
5658 '' ;
5759
0 commit comments