nixpkgs-suyu/pkgs/development/libraries/science/math/ecos/default.nix
Drew Risinger c71f63a337 ecos: 2.0.6 -> 2.0.7
Bump ecos module.
2020-02-16 19:12:52 -08:00

38 lines
817 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "ecos";
version = "2.0.7";
src = fetchFromGitHub {
owner = "embotech";
repo = "ecos";
rev = version;
sha256 = "1hsndim5kjvcwk5svqa4igawzahj982180xj1d7yd0dbjlgxc7w7";
};
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";
downloadPage = "https://github.com/embotech/ecos/releases";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ bhipple ];
};
}