depot/third_party/nixpkgs/pkgs/by-name/hi/highs/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

41 lines
784 B
Nix

{ 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 ];
};
})