Unverified Commit b0de7b52 authored by Ramses's avatar Ramses Committed by GitHub
Browse files

highs: {1.12.0 -> 1.14.0, modernize} (#512366)

parents db2b4d10 ff5adf43
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -4,29 +4,26 @@
  fetchFromGitHub,
  clang,
  cmake,
  versionCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "highs";
  version = "1.12.0";
  version = "1.14.0";

  src = fetchFromGitHub {
    owner = "ERGO-Code";
    repo = "HiGHS";
    rev = "v${finalAttrs.version}";
    hash = "sha256-FRiYtbl1kWEkHHEIIOpefC9UdusmJKl6UmP3dKRkAXA=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-0KmA5B2g3AFCxMbN9gHdXxAEftZglhQKOqj1/TMxxps=";
  };

  strictDeps = true;
  __structuredAttrs = true;

  outputs = [ "out" ];

  nativeInstallCheckInputs = [ versionCheckHook ];
  doInstallCheck = true;

  installCheckPhase = ''
    "$out/bin/highs" --version
  '';

  nativeBuildInputs = [
    clang
    cmake