depot/third_party/nixpkgs/pkgs/by-name/hi/highs/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
784 B
Nix

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