Merge pull request #45292 from bhipple/add/ecos

ecos: init at 2.0.6
This commit is contained in:
Silvan Mosberger 2018-08-18 18:33:48 +02:00 committed by GitHub
commit e8145704e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "ecos-${version}";
version = "2.0.6";
src = fetchFromGitHub {
owner = "embotech";
repo = "ecos";
rev = "v${version}";
sha256 = "11v958j66wq30gxpjpkgl7n3rvla845lygz8fl39pgf1vk9sdyc7";
};
buildPhase = ''
make all shared
'';
doCheck = true;
checkPhase = ''
make test
./runecos
'';
installPhase = ''
mkdir -p $out/lib
cp lib*.a lib*.so $out/lib
cp -r include $out/
'';
meta = with stdenv.lib; {
description = "A lightweight conic solver for second-order cone programming";
homepage = https://www.embotech.com/ECOS;
license = licenses.gpl3;
platforms = platforms.all;
maintainers = [ maintainers.bhipple ];
};
}

View file

@ -20559,6 +20559,8 @@ with pkgs;
cliquer = callPackage ../development/libraries/science/math/cliquer { };
ecos = callPackage ../development/libraries/science/math/ecos { };
flintqs = callPackage ../development/libraries/science/math/flintqs { };
gurobi = callPackage ../applications/science/math/gurobi { };