aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRoel Janssen <roel@gnu.org>2016-05-03 14:30:25 +0200
committerLudovic Courtès <ludo@gnu.org>2016-05-03 21:57:05 +0200
commit1b39a196f82a4ce2d2e93b244c278e55650f65c5 (patch)
tree782aec80b159653918cb4f41a0b30b269c9fc120 /gnu
parent5ef819cc01126fd28938ec5d148ae4c1a3f6a912 (diff)
downloadguix-1b39a196f82a4ce2d2e93b244c278e55650f65c5.tar.gz
guix-1b39a196f82a4ce2d2e93b244c278e55650f65c5.zip
gnu: Add nlopt.
* gnu/packages/maths.scm (nlopt): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maths.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index d37897da20..9ba7138f88 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -59,6 +59,7 @@
#:use-module (gnu packages less)
#:use-module (gnu packages lisp)
#:use-module (gnu packages gnome)
+ #:use-module (gnu packages guile)
#:use-module (gnu packages xorg)
#:use-module (gnu packages gl)
#:use-module (gnu packages m4)
@@ -430,6 +431,44 @@ extremely large and complex data collections.")
(license (license:x11-style
"http://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/COPYING"))))
+(define-public nlopt
+ (package
+ (name "nlopt")
+ (version "2.4.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://ab-initio.mit.edu/nlopt/nlopt-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(;; Shared libraries are not built by default. They are required to
+ ;; build the Guile, Octave, and Python bindings.
+ #:configure-flags '("--enable-shared")
+
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'set-libnlopt-file-name
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Make sure the Scheme module refers to the library by its
+ ;; absolute file name (we cannot do that from a snippet
+ ;; because the expansion of @libdir@ contains
+ ;; ${exec_prefix}.)
+ (let ((out (assoc-ref outputs "out")))
+ (substitute* "swig/nlopt.scm.in"
+ (("libnlopt")
+ (string-append out "/lib/libnlopt")))
+ #t))))))
+ (inputs `(("guile" ,guile-2.0)))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (home-page "http://ab-initio.mit.edu/wiki/")
+ (synopsis "Library for nonlinear optimization")
+ (description "NLopt is a library for nonlinear optimization, providing a
+common interface for a number of different free optimization routines available
+online as well as original implementations of various other algorithms.")
+ (license license:lgpl2.1+)))
+
;; For a fully featured Octave, users are strongly recommended also to install
;; the following packages: texinfo, less, ghostscript, gnuplot.
9382fe15a810d9c3c04'>gnu: vulkan-headers: Update to 1.2.141....* gnu/packages/vulkan.scm (vulkan-headers): Update to 1.2.141. (vulkan-loader, vulkan-tools)[version]: Do not inherit from VULKAN-HEADERS. Marius Bakke 2020-05-26gnu: glslang: Build shared libraries....* gnu/packages/vulkan.scm (glslang)[arguments]: Add #:configure-flags. Marius Bakke 2020-05-26gnu: glslang: Update to 8.13.3743....* gnu/packages/vulkan.scm (glslang): Update to 8.13.3743. [arguments]: Remove #:phases. [native-inputs]: Remove BISON. Add PYTHON. Marius Bakke 2020-05-26gnu: spirv-tools: Do not build static libraries....* gnu/packages/vulkan.scm (spirv-tools)[arguments]: Add "-DBUILD_SHARED_LIBS=ON" in #:configure-flags. Marius Bakke 2020-05-26gnu: spirv-tools: Update to 2020.2....* gnu/packages/vulkan.scm (spirv-tools): Update to 2020.2. [arguments]: Remove #:tests?. Marius Bakke 2020-05-26gnu: spirv-headers: Update to 1.5.3....* gnu/packages/vulkan.scm (spirv-headers): Update to 1.5.3. Marius Bakke 2020-04-04gnu: Replace uses of 'gettext' with 'gettext-minimal'....* gnu/packages/cdrom.scm (dvdstyler)[native-inputs]: Change from GNU-GETTEXT to GETTEXT-MINIMAL. * gnu/packages/emulators.scm (dolphin-emu)[native-inputs]: Likewise. * gnu/packages/engineering.scm (lepton-eda, kicad, kicad-i18l)[native-inputs]: Likewise. * gnu/packages/games.scm (quadrapassel, edgar)[native-inputs]: Likewise. * gnu/packages/gnome.scm (eog-plugins, workrave, geary)[native-inputs]: Likewise. * gnu/packages/guile-xyz.scm (guile-gi, emacsy)[native-inputs]: Likewise. * gnu/packages/image.scm (gpick)[native-inputs]: Likewise. * gnu/packages/messaging.scm (telegram-purple)[native-inputs]: Likewise. * gnu/packages/music.scm (fmit)[native-inputs]: Likewise. * gnu/packages/package-management.scm (flatpak)[native-inputs]: Likewise. * gnu/packages/patchutils.scm (quilt)[native-inputs]: Likewise. * gnu/packages/photo.scm (hugin)[native-inputs]: Likewise. * gnu/packages/security-token.scm (eid-mw)[native-inputs]: Likewise. * gnu/packages/telephony.scm (jami)[native-inputs]: Likewise. * gnu/packages/texinfo.scm (pinfo)[native-inputs]: Likewise. * gnu/packages/vulkan.scm (vkd3d)[native-inputs]: Likewise. * gnu/packages/web.scm (cadaver)[native-inputs]: Likewise. Marius Bakke 2020-03-29gnu: Remove more packages deprecated for over almost a year....* gnu/packages/games.scm (armagetron-advanced) (cataclysm-dark-days-ahead, gnubackgammon, l-abbaye-des-morts) (the-battle-for-wesnoth, the-battle-for-wesnoth-server) (project-starfighter, kiki-the-nano-bot, fish-fillets-ng) (dungeon-crawl-stone-soup): Let's forget this ever happened. * gnu/packages/emacs-xyz.scm (geiser, paredit, git-modes/old-name) (magit, magit-svn, haskell-mode, emacs-emms-player-mpv, bbdb) (ert-runner, groovy-emacs-modes): Remove variable. * gnu/packages/engineering.scm (emacs-emms-player-simple-mpv) (emacs-evil-ediff, emacs-evil-mu4e, emacs-wgrep-helm, ao): Likewise. * gnu/packages/finance.scm (monero-core): Likewise. * gnu/packages/gnome.scm (dungeon-crawl-stone-soup-tiles) (tales-of-maj-eyal, battle-tanks, the-legend-of-edgar) (gnome-tweak-tool): Likewise. * gnu/packages/gnuzilla.scm (conkeror): Likewise. * gnu/packages/guile-xyz.scm (mcron2): Likewise. * gnu/packages/image.scm (pngcrunch): Likewise. * gnu/packages/linux.scm (eudev-with-hwdb): Likewise. * gnu/packages/maths.scm (qtoctave): Likewise. * gnu/packages/package-management.scm (guile2.0-guix): Likewise. * gnu/packages/php.scm (php-with-bcmath): Likewise. * gnu/packages/python-xyz.scm (python-kivy-next, python2-kivy-next): Likewise. * gnu/packages/video.scm (livestreamer): Likewise. * gnu/packages/virtualization.scm (lookingglass): Likewise. * gnu/packages/vulkan.scm (vulkan-icd-loader): Likewise. * gnu/packages/syndication.scm (newsbeuter): Likewise. (newsboat)[description]: Remove historical footnote. Tobias Geerinckx-Rice 2019-10-08Merge branch 'master' into stagingMarius Bakke 2019-09-27Merge branch 'master' into core-updatesMarius Bakke 2019-09-25gnu: spirv-tools: Use GIT-FILE-NAME....* gnu/packages/vulkan.scm (spirv-tools)[source]: Use GIT-FILE-NAME. Tobias Geerinckx-Rice 2019-09-25gnu: spirv-tools: Update to 2019.2....* gnu/packages/vulkan.scm (spirv-tools): Update to 2019.2. Tobias Geerinckx-Rice 2019-09-17Merge branch 'master' into core-updatesLudovic Courtès 2019-09-11gnu: glslang: Use GIT-FILE-NAME....* gnu/packages/vulkan.scm (glslang)[source]: Use GIT-FILE-NAME. Tobias Geerinckx-Rice 2019-09-11gnu: vulkan-headers: Update to 1.1.121....* gnu/packages/vulkan.scm (vulkan-headers): Update to 1.1.121. * gnu/packages/vulkan.scm (vulkan-loader): Update hash. * gnu/packages/vulkan.scm (vulkan-tools): Update hash. Rutger Helling 2019-08-15gnu: vulkan-headers: Update to 1.1.119....* gnu/packages/vulkan.scm (vulkan-headers): Update to 1.1.119. [arguments]: Remove unnecessary phases. * gnu/packages/vulkan.scm (vulkan-loader): Update hash. * gnu/packages/vulkan.scm (vulkan-tools): Update hash. Rutger Helling 2019-08-13Merge branch 'master' into core-updatesMarius Bakke 2019-07-25gnu: vulkan-headers: Update to 1.1.114....* gnu/packages/vulkan.scm (vulkan-headers): Update to 1.1.114. * gnu/packages/vulkan.scm (vulkan-loader): Update hash. * gnu/packages/vulkan.scm (vulkan-tools): Update hash. Rutger Helling