aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorEfraim Flashner2019-11-24 03:17:46 -0600
committerEfraim Flashner2019-11-24 03:17:46 -0600
commit1b8c84a6c3eeb6de9cee988d919fdfb40284daff (patch)
tree7847e385c590572166733f066711cf7574c08980 /gn
parent4ea5e4137c8ca5c325eacc9f8b092f3bd7eef015 (diff)
downloadguix-bioinformatics-1b8c84a6c3eeb6de9cee988d919fdfb40284daff.tar.gz
gn: Add boost-static.
* gn/packages/boost.scm (boost-static): New variable.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/boost.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/gn/packages/boost.scm b/gn/packages/boost.scm
new file mode 100644
index 0000000..8ef631b
--- /dev/null
+++ b/gn/packages/boost.scm
@@ -0,0 +1,21 @@
+(define-module (gn packages boost)
+ #:use-module (guix utils)
+ #:use-module (guix packages)
+ #:use-module (gnu packages boost))
+
+(define-public boost-static
+ (package
+ (inherit boost)
+ (name "boost-static")
+ (arguments
+ (substitute-keyword-arguments (package-arguments boost)
+ ((#:make-flags flags)
+ `(cons "link=static" (delete "link=shared" ,flags)))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'provide-libboost_python
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (with-directory-excursion (string-append out "/lib")
+ (symlink "libboost_python27.a" "libboost_python.a"))
+ #t)))))))))