gnu: syncthing: Use install-source? to disable installing the source code.

* gnu/packages/syncthing.scm (syncthing): Set #:install-source? #f
instead of deleting the install-source phase.
This commit is contained in:
Leo Famulari 2017-10-24 12:18:24 -04:00
parent c10851cf91
commit 1899ef0b83
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -41,6 +41,8 @@ (define-public syncthing
(arguments (arguments
`(#:import-path "github.com/syncthing/syncthing" `(#:import-path "github.com/syncthing/syncthing"
#:unpack-path "github.com/syncthing" #:unpack-path "github.com/syncthing"
;; We don't need to install the source code for end-user applications.
#:install-source? #f
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'delete-bundled-source-code (add-after 'unpack 'delete-bundled-source-code
@ -55,9 +57,6 @@ (define-public syncthing
"src/github.com/syncthing/syncthing/vendor/github.com/cznic") "src/github.com/syncthing/syncthing/vendor/github.com/cznic")
#t)) #t))
;; We don't need to install the source code for end-user applications.
(delete 'install-source)
(add-before 'build 'increase-test-timeout (add-before 'build 'increase-test-timeout
(lambda _ (lambda _
(substitute* "src/github.com/syncthing/syncthing/build.go" (substitute* "src/github.com/syncthing/syncthing/build.go"