{ lib , stdenv , fetchFromGitHub , clang , cmake }: stdenv.mkDerivation (finalAttrs: { pname = "highs"; version = "1.7.1"; src = fetchFromGitHub { owner = "ERGO-Code"; repo = "HiGHS"; rev = "v${finalAttrs.version}"; sha256 = "sha256-SJbS0403HyiW8zPrLsNWp8+h/wL7UdrS+QOEjLf1jzE="; }; 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 ]; }; })