diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2018-06-14 14:27:19 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2018-06-14 14:27:19 +0300 |
| commit | 8616e65795bd2cd418f6c0a83cb0dcfdd986539e (patch) | |
| tree | 9072f6ae6e51e343e91c4481d58ddc57d7a1ab1b | |
| parent | wigust: restic: Install shell completion. (diff) | |
| download | guix-wigust-8616e65795bd2cd418f6c0a83cb0dcfdd986539e.tar.gz | |
wigust: restic: Add '#:unpack-path'.
* wigust/packages/golang.scm (restic): Add #:UNPACK-PATH.
| -rw-r--r-- | wigust/packages/golang.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wigust/packages/golang.scm b/wigust/packages/golang.scm index c38bab2..e19c4ae 100644 --- a/wigust/packages/golang.scm +++ b/wigust/packages/golang.scm @@ -50,6 +50,7 @@ (build-system go-build-system) (arguments `(#:import-path "github.com/restic/restic" + #:unpack-path "github.com/restic" ;; We don't need to install the source code for end-user applications. #:install-source? #f #:phases @@ -57,14 +58,14 @@ (replace 'build (lambda* (#:key inputs #:allow-other-keys) (with-directory-excursion (string-append - "src/github.com/restic/restic/restic-" + "src/github.com/restic/restic-" ,version) (invoke "go" "run" "build.go")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) - (src (string-append "src/github.com/restic/restic/restic-" + (src (string-append "src/github.com/restic/restic-" ,version))) (install-file (string-append src "/restic") (string-append out "/bin")) @@ -75,7 +76,7 @@ (let* ((out (assoc-ref outputs "out")) (man "/share/man") (man-section (string-append man "/man")) - (src (string-append "src/github.com/restic/restic/restic-" + (src (string-append "src/github.com/restic/restic-" ,version "/doc/man/"))) ;; Install all the man pages to "out". (for-each |
