mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: restic-rest-server: Refresh package style.
* gnu/packages/backup.scm (restic-rest-server): Use G-expressions. [arguments] <#:phases>: Swap back to standard 'check phase and add 'set-tmpdir phase. [native-inputs]: Swap from propagated-inputs to native-inputs, sort alphabetically. Change-Id: I5010a2dd81b887d8ef10fa27b3ffcb228e08fade
This commit is contained in:
parent
087d1e16a1
commit
584e77abd5
1 changed files with 23 additions and 24 deletions
|
@ -1076,30 +1076,29 @@ (define-public restic-rest-server
|
||||||
"1nvmxc9x0mlks6yfn66fmwn50k5q83ip4g9vvb0kndzd7hwcyacy"))))
|
"1nvmxc9x0mlks6yfn66fmwn50k5q83ip4g9vvb0kndzd7hwcyacy"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:import-path "github.com/restic/rest-server/cmd/rest-server"
|
(list
|
||||||
#:unpack-path "github.com/restic/rest-server"
|
#:install-source? #f
|
||||||
#:install-source? #f ;all we need is the binary
|
#:import-path "github.com/restic/rest-server/cmd/rest-server"
|
||||||
#:phases (modify-phases %standard-phases
|
#:unpack-path "github.com/restic/rest-server"
|
||||||
(replace 'check
|
#:phases
|
||||||
(lambda* (#:key tests? #:allow-other-keys . args)
|
#~(modify-phases %standard-phases
|
||||||
(when tests?
|
;; Unit tests seems to break with Guix' non-standard TMPDIR.
|
||||||
;; Unit tests seems to break with Guix' non-standard TMPDIR.
|
(add-before 'check 'set-tmpdir
|
||||||
(setenv "TMPDIR" "/tmp")
|
(lambda _
|
||||||
(apply (assoc-ref %standard-phases
|
(setenv "TMPDIR" "/tmp")))
|
||||||
'check) args))))
|
(add-after 'install 'rename-binary
|
||||||
(add-after 'install 'rename-binary
|
(lambda _
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(with-directory-excursion #$output
|
||||||
(with-directory-excursion (assoc-ref outputs "out")
|
;; "rest-server" is a bit too generic.
|
||||||
;; "rest-server" is a bit too generic.
|
(rename-file "bin/rest-server"
|
||||||
(rename-file "bin/rest-server"
|
"bin/restic-rest-server")))))))
|
||||||
"bin/restic-rest-server")))))))
|
(native-inputs (list go-github-com-coreos-go-systemd-activation
|
||||||
(propagated-inputs (list go-golang-org-x-crypto
|
go-github-com-gorilla-handlers
|
||||||
go-github-com-spf13-cobra
|
go-github-com-minio-sha256-simd
|
||||||
go-github-com-prometheus-client-golang
|
go-github-com-miolini-datacounter
|
||||||
go-github-com-miolini-datacounter
|
go-github-com-prometheus-client-golang
|
||||||
go-github-com-minio-sha256-simd
|
go-github-com-spf13-cobra
|
||||||
go-github-com-gorilla-handlers
|
go-golang-org-x-crypto))
|
||||||
go-github-com-coreos-go-systemd-activation))
|
|
||||||
(home-page "https://github.com/restic/rest-server")
|
(home-page "https://github.com/restic/rest-server")
|
||||||
(synopsis "Restic REST server")
|
(synopsis "Restic REST server")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue