gnu: crypto++: Don't hard-code VERSION.
* gnu/packages/crypto.scm (crypto++)[arguments]: Use package VERSION.
This commit is contained in:
		
							parent
							
								
									e48390cb20
								
							
						
					
					
						commit
						3ca6c1a720
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
					@ -70,6 +70,7 @@
 | 
				
			||||||
  #:use-module (guix build-system cmake)
 | 
					  #:use-module (guix build-system cmake)
 | 
				
			||||||
  #:use-module (guix build-system gnu)
 | 
					  #:use-module (guix build-system gnu)
 | 
				
			||||||
  #:use-module (guix build-system perl)
 | 
					  #:use-module (guix build-system perl)
 | 
				
			||||||
 | 
					  #:use-module (guix utils)
 | 
				
			||||||
  #:use-module (srfi srfi-1)
 | 
					  #:use-module (srfi srfi-1)
 | 
				
			||||||
  #:use-module (srfi srfi-26))
 | 
					  #:use-module (srfi srfi-26))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -635,10 +636,14 @@ data on your platform, so the seed itself will be as random as possible.
 | 
				
			||||||
           ;; Create all the ‘intermediates’ expected by dependent packages.
 | 
					           ;; Create all the ‘intermediates’ expected by dependent packages.
 | 
				
			||||||
           (lambda* (#:key outputs #:allow-other-keys)
 | 
					           (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
             (let* ((out (assoc-ref outputs "out"))
 | 
					             (let* ((out (assoc-ref outputs "out"))
 | 
				
			||||||
                    (lib (string-append out "/lib")))
 | 
					                    (lib (string-append out "/lib"))
 | 
				
			||||||
 | 
					                    (prefix "libcryptopp.so.")
 | 
				
			||||||
 | 
					                    (target (string-append prefix ,version)))
 | 
				
			||||||
               (with-directory-excursion lib
 | 
					               (with-directory-excursion lib
 | 
				
			||||||
                 (symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8.0")
 | 
					                 (symlink target
 | 
				
			||||||
                 (symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8")
 | 
					                          (string-append prefix ,(version-major+minor version)))
 | 
				
			||||||
 | 
					                 (symlink target
 | 
				
			||||||
 | 
					                          (string-append prefix ,(version-major version)))
 | 
				
			||||||
                 #t))))
 | 
					                 #t))))
 | 
				
			||||||
         (add-after 'install 'install-pkg-config
 | 
					         (add-after 'install 'install-pkg-config
 | 
				
			||||||
           (lambda* (#:key outputs #:allow-other-keys)
 | 
					           (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue