commit
e8145704e5
2 changed files with 39 additions and 0 deletions
37
pkgs/development/libraries/science/math/ecos/default.nix
Normal file
37
pkgs/development/libraries/science/math/ecos/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue