Merge pull request #295386 from silky/noon/add-highs

add the 'HiGHS' solver for linear programs
This commit is contained in:
Connor Baker 2024-03-12 22:20:43 -04:00 committed by GitHub
commit 2dd8b30c33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 0 deletions

View File

@ -17847,6 +17847,12 @@
fingerprint = "ADF4 C13D 0E36 1240 BD01 9B51 D1DE 6D7F 6936 63A5";
}];
};
silky = {
name = "Noon van der Silk";
email = "noonsilk+nixpkgs@gmail.com";
github = "silky";
githubId = 129525;
};
Silver-Golden = {
name = "Brendan Golden";
email = "github+nixpkgs@brendan.ie";

View File

@ -0,0 +1,41 @@
{ lib
, stdenv
, fetchFromGitHub
, clang
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "highs";
version = "1.7.0";
src = fetchFromGitHub {
owner = "ERGO-Code";
repo = "HiGHS";
rev = "v${finalAttrs.version}";
sha256 = "sha256-2dYKXckZ+npj1rA2mmBRuRcGI1YNcaiITSMjE2/TA2g=";
};
strictDeps = true;
outputs = [ "out" ];
doInstallCheck = true;
installCheckPhase = ''
"$out/bin/highs" --version
'';
nativeBuildInputs = [ clang cmake ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://github.com/ERGO-Code/HiGHS";
description = "Linear optimization software";
license = licenses.mit;
platforms = platforms.all;
mainProgram = "highs";
maintainers = with maintainers; [ silky ];
};
})