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