mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 22:14:42 +00:00

Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
42 lines
782 B
Nix
42 lines
782 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, clang
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "highs";
|
|
version = "1.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ERGO-Code";
|
|
repo = "HiGHS";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-q18TfKbZyTZzzPZ8z3U57Yt8q2PSvbkg3qqqiPMgy5Q=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|