summary refs log tree commit diff
path: root/pkgs/development/libraries/nlopt
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2018-11-02 12:44:08 +0100
committerPeter Simons <simons@cryp.to>2018-11-02 17:50:18 +0100
commit9f9fc7ae1545306837948cda08a16c10fdbcce2a (patch)
tree62377ace616e7ae2900ae8d557ef5d75da088459 /pkgs/development/libraries/nlopt
parent9b63cc63131176cf232d8677ba56b4e57563982c (diff)
downloadnixpkgs-9f9fc7ae1545306837948cda08a16c10fdbcce2a.tar
nixpkgs-9f9fc7ae1545306837948cda08a16c10fdbcce2a.tar.gz
nixpkgs-9f9fc7ae1545306837948cda08a16c10fdbcce2a.tar.bz2
nixpkgs-9f9fc7ae1545306837948cda08a16c10fdbcce2a.tar.lz
nixpkgs-9f9fc7ae1545306837948cda08a16c10fdbcce2a.tar.xz
nixpkgs-9f9fc7ae1545306837948cda08a16c10fdbcce2a.tar.zst
nixpkgs-9f9fc7ae1545306837948cda08a16c10fdbcce2a.zip
nlopt: update from 2.4.2 to 2.5.0
Diffstat (limited to 'pkgs/development/libraries/nlopt')
-rw-r--r--pkgs/development/libraries/nlopt/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/libraries/nlopt/default.nix b/pkgs/development/libraries/nlopt/default.nix
index 904cdc6a3da..48b7acf2896 100644
--- a/pkgs/development/libraries/nlopt/default.nix
+++ b/pkgs/development/libraries/nlopt/default.nix
@@ -1,13 +1,20 @@
-{ fetchurl, stdenv, octave ? null }:
+{ fetchurl, stdenv, octave ? null, cmake }:
 
-stdenv.mkDerivation rec {
-  name = "nlopt-2.4.2";
+let
+
+  version = "2.5.0";
+
+in
+
+stdenv.mkDerivation {
+  name = "nlopt-${version}";
 
   src = fetchurl {
-    url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz";
-    sha256 = "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0";
+    url = "https://github.com/stevengj/nlopt/archive/v${version}.tar.gz";
+    sha256 = "1bmlsdzkw8xbigiihffyb0kdaqbyfn7dr8s5pdgavy7z05bpmpf6";
   };
 
+  nativeBuildInputs = [ cmake ];
   buildInputs = [ octave ];
 
   configureFlags = [
@@ -24,7 +31,7 @@ stdenv.mkDerivation rec {
   ];
 
   meta = {
-    homepage = http://ab-initio.mit.edu/nlopt/;
+    homepage = "https://nlopt.readthedocs.io/en/latest/";
     description = "Free open-source library for nonlinear optimization";
     license = stdenv.lib.licenses.lgpl21Plus;
     hydraPlatforms = stdenv.lib.platforms.linux;