add the 'HiGHS' solver for linear programs
This commit is contained in:
parent
e220724911
commit
ca4d07071f
2 changed files with 47 additions and 0 deletions
|
@ -17831,6 +17831,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";
|
||||
|
|
41
pkgs/by-name/hi/highs/package.nix
Normal file
41
pkgs/by-name/hi/highs/package.nix
Normal 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 ];
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue