highs: modernize

This commit is contained in:
Jack Rosenberg
2026-04-22 14:24:06 +02:00
parent 339c482362
commit ff5adf43d9
+4 -9
View File
@@ -4,31 +4,26 @@
fetchFromGitHub,
clang,
cmake,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "highs";
version = "1.12.0";
version = "1.14.0";
src = fetchFromGitHub {
owner = "ERGO-Code";
repo = "HiGHS";
rev = "v${finalAttrs.version}";
hash = "sha256-FRiYtbl1kWEkHHEIIOpefC9UdusmJKl6UmP3dKRkAXA=";
tag = "v${finalAttrs.version}";
hash = "sha256-0KmA5B2g3AFCxMbN9gHdXxAEftZglhQKOqj1/TMxxps=";
};
strictDeps = true;
__structuredAttrs = true;
outputs = [ "out" ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
installCheckPhase = ''
"$out/bin/highs" --version
'';
nativeBuildInputs = [
clang
cmake