3
0
Fork 0
forked from mirrors/nixpkgs

ecos: init at 2.0.6

This commit is contained in:
Benjamin Hipple 2018-08-18 03:06:00 +00:00
parent 85c4d48641
commit 460029cf94
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";
};
doCheck = true;
buildPhase = ''
make all shared
'';
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;
maintainers = [ maintainers.bhipple ];
};
}

View file

@ -20552,6 +20552,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 { };