3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/science/math/ecos/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

38 lines
751 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "ecos";
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 ];
};
}