mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
42 lines
782 B
Nix
42 lines
782 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, clang
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "highs";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ERGO-Code";
|
|
repo = "HiGHS";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-3ACo6V6Y99XPe4dvurWflNGPjHy3irURv4jYHMrgSms=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|