Subject: bug#52706: closed (Re: bug#52706: [PATCH] gnu: Add quantlib.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 23 Dec 2021 18:41:02 +0000

Your bug report

#52706: [PATCH] gnu: Add quantlib.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
52706: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52706
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#52706: [PATCH] gnu: Add quantlib.
From: Mathieu Othacehe <[email-masked]>
To: [email-masked]
Date: Thu, 23 Dec 2021 19:40:05 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

> +             (string-append "--prefix=" (assoc-ref %outputs "out")))))

Turned it into a gexp and pushed.

Thanks,

Mathieu

Subject: [PATCH] gnu: Add quantlib.
From: Foo Chuan Wei <[email-masked]>
To: [email-masked]
Date: Tue, 21 Dec 2021 15:20:28 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/finance.scm (quantlib): New variable.
---
 gnu/packages/finance.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 3c162ff86f..7b50ee9189 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1821,6 +1821,32 @@ local, single-user UI, or as a multi-user UI for viewing, adding, and
 editing on the Web.")
     (license license:gpl3)))
 
+(define-public quantlib
+  (package
+    (name "quantlib")
+    (version "1.24")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/lballabio/QuantLib/releases/download/QuantLib-v"
+             version "/QuantLib-" version ".tar.gz"))
+       (sha256
+        (base32 "1rxjhkc32a8z0g5gmh0iw5nx0fr31cjsrfgq7c8g6nib003kgnnx"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags
+       (list "--disable-static"
+             (string-append "--prefix=" (assoc-ref %outputs "out")))))
+    (inputs (list boost))
+    (home-page "https://www.quantlib.org")
+    (synopsis "Library for quantitative finance")
+    (description
+     "The QuantLib project is aimed at providing a comprehensive software
+framework for quantitative finance.  QuantLib is a free/open-source library for
+modeling, trading, and risk management in real-life.")
+    (license license:bsd-2)))
+
 (define-public optionmatrix
   (package
     (name "optionmatrix")

base-commit: 3b3bef3e4e3a8f38e8686262cd12e1786a9ac2b0
-- 
2.25.1