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