gnu: restic: Fix build phase.

* gnu/packages/backup.scm (restic)[arguments]: Set "HOME" environment variable
in build phase.
This commit is contained in:
Oleg Pykhalov 2018-11-13 15:03:15 +03:00
parent 6018683683
commit 155956449a
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -887,6 +887,7 @@ (define-public restic
,version)
;; Disable 'restic self-update'. It makes little sense in Guix.
(substitute* "build.go" (("selfupdate") ""))
(setenv "HOME" (getcwd)) ; for $HOME/.cache/go-build
(invoke "go" "run" "build.go"))))
(replace 'check