2020-03-05 05:27:46 -08:00
|
|
|
{ stdenv, autoreconfHook, fetchFromGitHub, zlib, libibmad, openssl }:
|
2014-09-14 19:00:25 -07:00
|
|
|
|
2016-08-24 11:04:38 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-05 05:27:46 -08:00
|
|
|
pname = "mstflint";
|
2020-07-08 04:04:52 -07:00
|
|
|
version = "4.14.0-3";
|
2014-09-14 19:00:25 -07:00
|
|
|
|
2020-03-05 05:27:46 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mellanox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-08 04:04:52 -07:00
|
|
|
sha256 = "0zy9npyzf7dkxlfl9mx6997aa61mk23ixpjb01ckb1wvav5k6z82";
|
2014-09-14 19:00:25 -07:00
|
|
|
};
|
|
|
|
|
2020-03-05 05:27:46 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib libibmad openssl ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
dontDisableStatic = true; # the build fails without this. should probably be reported upstream
|
2014-09-14 19:00:25 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-11-04 14:54:09 -08:00
|
|
|
description = "Open source version of Mellanox Firmware Tools (MFT)";
|
2020-03-05 05:27:46 -08:00
|
|
|
homepage = "https://github.com/Mellanox/mstflint";
|
|
|
|
license = with licenses; [ gpl2 bsd2 ];
|
2014-09-14 19:00:25 -07:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|