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,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ecos";
version = "2.0.7";
version = "2.0.10";
src = fetchFromGitHub {
owner = "embotech";
repo = "ecos";
rev = version;
sha256 = "1hsndim5kjvcwk5svqa4igawzahj982180xj1d7yd0dbjlgxc7w7";
tag = "v${finalAttrs.version}";
hash = "sha256-WMgqDc+XAY3g2wwlefjJ0ATxR5r/jL971FZKtxsunnU=";
};
buildPhase = ''
runHook preBuild
make all shared
runHook postBuild
'';
doCheck = true;
checkPhase = ''
runHook preCheck
make test
./runecos
runHook postCheck
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib
cp lib*.a lib*.so $out/lib
cp -r include $out/
runHook postInstall
'';
meta = with lib; {
meta = {
description = "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 ];
license = lib.licenses.gpl3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ bhipple ];
};
}
})