ecos: 2.0.7 -> 2.0.10

Diff: https://github.com/embotech/ecos/compare/v2.0.7...v2.0.10
This commit is contained in:
emaryn 2025-04-22 06:13:33 +08:00
parent 2b70f37c3a
commit 32002ac255

View file

@ -4,39 +4,52 @@
fetchFromGitHub, fetchFromGitHub,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ecos"; pname = "ecos";
version = "2.0.7"; version = "2.0.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "embotech"; owner = "embotech";
repo = "ecos"; repo = "ecos";
rev = version; tag = "v${finalAttrs.version}";
sha256 = "1hsndim5kjvcwk5svqa4igawzahj982180xj1d7yd0dbjlgxc7w7"; hash = "sha256-WMgqDc+XAY3g2wwlefjJ0ATxR5r/jL971FZKtxsunnU=";
}; };
buildPhase = '' buildPhase = ''
runHook preBuild
make all shared make all shared
runHook postBuild
''; '';
doCheck = true; doCheck = true;
checkPhase = '' checkPhase = ''
runHook preCheck
make test make test
./runecos ./runecos
runHook postCheck
''; '';
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/lib mkdir -p $out/lib
cp lib*.a lib*.so $out/lib cp lib*.a lib*.so $out/lib
cp -r include $out/ cp -r include $out/
runHook postInstall
''; '';
meta = with lib; { meta = {
description = "Lightweight conic solver for second-order cone programming"; description = "Lightweight conic solver for second-order cone programming";
homepage = "https://www.embotech.com/ECOS"; homepage = "https://www.embotech.com/ECOS";
downloadPage = "https://github.com/embotech/ecos/releases"; downloadPage = "https://github.com/embotech/ecos/releases";
license = licenses.gpl3; license = lib.licenses.gpl3;
platforms = platforms.all; platforms = lib.platforms.all;
maintainers = with maintainers; [ bhipple ]; maintainers = with lib.maintainers; [ bhipple ];
}; };
} })