summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-02-19 18:43:39 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2020-02-19 23:43:39 +0100
commit3ca6c1a720c8a6460470d17ec1b63277583d0996 (patch)
tree69b7c2c64adb758978eb16cf9e5c22b8b228f3a9
parente48390cb200e66d5313e19167dec4f92dc7c2e8a (diff)
downloadguix-3ca6c1a720c8a6460470d17ec1b63277583d0996.tar.gz
gnu: crypto++: Don't hard-code VERSION.
* gnu/packages/crypto.scm (crypto++)[arguments]: Use package VERSION.
-rw-r--r--gnu/packages/crypto.scm11
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 4ce1cc4fc4..8d81fa70df 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -70,6 +70,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
+  #:use-module (guix utils)
   #:use-module (srfi srfi-1)
   #: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.
            (lambda* (#:key outputs #:allow-other-keys)
              (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
-                 (symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8.0")
-                 (symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8")
+                 (symlink target
+                          (string-append prefix ,(version-major+minor version)))
+                 (symlink target
+                          (string-append prefix ,(version-major version)))
                  #t))))
          (add-after 'install 'install-pkg-config
            (lambda* (#:key outputs #:allow-other-keys)