gnu: go-github-com-matttproud-golang-protobuf-extensions-pbutil: Rename variable.
* gnu/packages/golang-xyz.scm (go-github-com-matttproud-golang-protobuf-extensions-pbutil): Rename variable to go-github-com-matttproud-golang-protobuf-extensions-v2 as seen in go.mod. [arguments]: <#:unpack-path>: Remove it. <#:import-path>: Swap to "github.com/matttproud/golang_protobuf_extensions/v2". <#:phases>: Add custom 'check phase. Remove 'build phase. * gnu/packages/golang.scm (go-github-com-prometheus-common) [propagated-inputs]: Remove go-github-com-matttproud-golang-protobuf-extensions-pbutil. Add go-github-com-matttproud-golang-protobuf-extensions-v2. Change-Id: Icf9db2997a47be4f0babec10edcb01a578a7a7e7
This commit is contained in:
		
							parent
							
								
									088d174fd9
								
							
						
					
					
						commit
						a2ca087a85
					
				
					 2 changed files with 14 additions and 5 deletions
				
			
		| 
						 | 
					@ -2702,9 +2702,9 @@ the @code{cpan} module @code{Parse::CommandLine}.")
 | 
				
			||||||
other directories.  It is optimized for filewalking.")
 | 
					other directories.  It is optimized for filewalking.")
 | 
				
			||||||
    (license license:expat)))
 | 
					    (license license:expat)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public go-github-com-matttproud-golang-protobuf-extensions-pbutil
 | 
					(define-public go-github-com-matttproud-golang-protobuf-extensions-v2
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "go-github-com-matttproud-golang-protobuf-extensions-pbutil")
 | 
					    (name "go-github-com-matttproud-golang-protobuf-extensions-v2")
 | 
				
			||||||
    (version "2.0.0")
 | 
					    (version "2.0.0")
 | 
				
			||||||
    (source
 | 
					    (source
 | 
				
			||||||
     (origin
 | 
					     (origin
 | 
				
			||||||
| 
						 | 
					@ -2720,8 +2720,17 @@ other directories.  It is optimized for filewalking.")
 | 
				
			||||||
    (build-system go-build-system)
 | 
					    (build-system go-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     (list
 | 
					     (list
 | 
				
			||||||
      #:import-path "github.com/matttproud/golang_protobuf_extensions/v2/pbutil"
 | 
					      #:import-path "github.com/matttproud/golang_protobuf_extensions/v2"
 | 
				
			||||||
      #:unpack-path "github.com/matttproud/golang_protobuf_extensions/v2"))
 | 
					      #:phases
 | 
				
			||||||
 | 
					      #~(modify-phases %standard-phases
 | 
				
			||||||
 | 
					          ;; XXX: Activate when go-build-system supports submodules.
 | 
				
			||||||
 | 
					          (delete 'build)
 | 
				
			||||||
 | 
					          ;; XXX: Replace when go-build-system supports nested path.
 | 
				
			||||||
 | 
					          (replace 'check
 | 
				
			||||||
 | 
					            (lambda* (#:key import-path tests? #:allow-other-keys)
 | 
				
			||||||
 | 
					              (when tests?
 | 
				
			||||||
 | 
					                (with-directory-excursion (string-append "src/" import-path)
 | 
				
			||||||
 | 
					                  (invoke "go" "test" "-v" "./..."))))))))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     (list go-github-com-golang-protobuf
 | 
					     (list go-github-com-golang-protobuf
 | 
				
			||||||
           go-google-golang-org-protobuf))
 | 
					           go-google-golang-org-protobuf))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7599,7 +7599,7 @@ formatting information, rather than the current locale name.")
 | 
				
			||||||
         (delete 'build))))
 | 
					         (delete 'build))))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     (list go-github-com-golang-protobuf
 | 
					     (list go-github-com-golang-protobuf
 | 
				
			||||||
           go-github-com-matttproud-golang-protobuf-extensions-pbutil
 | 
					           go-github-com-matttproud-golang-protobuf-extensions-v2
 | 
				
			||||||
           go-github-com-prometheus-client-model))
 | 
					           go-github-com-prometheus-client-model))
 | 
				
			||||||
    (synopsis "Prometheus metrics")
 | 
					    (synopsis "Prometheus metrics")
 | 
				
			||||||
    (description "This package provides tools for reading and writing
 | 
					    (description "This package provides tools for reading and writing
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue