From 8616e65795bd2cd418f6c0a83cb0dcfdd986539e Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Thu, 14 Jun 2018 14:27:19 +0300 Subject: wigust: restic: Add '#:unpack-path'. * wigust/packages/golang.scm (restic): Add #:UNPACK-PATH. --- wigust/packages/golang.scm | 7 ++++--- 1 file 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 -- cgit v1.2.3