diff options
Diffstat (limited to 'pkgs/by-name/hi/highs/package.nix')
-rw-r--r-- | pkgs/by-name/hi/highs/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/hi/highs/package.nix b/pkgs/by-name/hi/highs/package.nix new file mode 100644 index 000000000000..4023d3e52afb --- /dev/null +++ b/pkgs/by-name/hi/highs/package.nix @@ -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 ]; + }; +}) |