3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/science/math/ecos/default.nix

38 lines
731 B
Nix
Raw Normal View History

2018-08-18 04:06:00 +01:00
{ 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 ];
};
}