Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
987 B
Nix
56 lines
987 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ecos";
|
|
version = "2.0.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "embotech";
|
|
repo = "ecos";
|
|
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 = {
|
|
description = "Lightweight conic solver for second-order cone programming";
|
|
homepage = "https://www.embotech.com/ECOS";
|
|
downloadPage = "https://github.com/embotech/ecos/releases";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ bhipple ];
|
|
};
|
|
})
|