Skip to content

Commit

Permalink
Merge pull request NixOS#295386 from silky/noon/add-highs
Browse files Browse the repository at this point in the history
add the 'HiGHS' solver for linear programs
  • Loading branch information
Connor Baker authored Mar 13, 2024
2 parents 811ec16 + ca4d070 commit 2dd8b30
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17847,6 +17847,12 @@
fingerprint = "ADF4 C13D 0E36 1240 BD01 9B51 D1DE 6D7F 6936 63A5";
}];
};
silky = {
name = "Noon van der Silk";
email = "[email protected]";
github = "silky";
githubId = 129525;
};
Silver-Golden = {
name = "Brendan Golden";
email = "[email protected]";
Expand Down
41 changes: 41 additions & 0 deletions pkgs/by-name/hi/highs/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
})

0 comments on commit 2dd8b30

Please sign in to comment.