forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#295386 from silky/noon/add-highs
add the 'HiGHS' solver for linear programs
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
}) |