nixpkgs/pkgs/tools/misc/mstflint/default.nix

35 lines
759 B
Nix
Raw Normal View History

2021-09-06 01:28:02 +00:00
{ lib
, stdenv
, fetchurl
, libibmad
, openssl
, zlib
}:
2014-09-15 02:00:25 +00:00
2016-08-24 18:04:38 +00:00
stdenv.mkDerivation rec {
2020-03-05 13:27:46 +00:00
pname = "mstflint";
2021-09-06 01:28:02 +00:00
version = "4.17.0-1";
2014-09-15 02:00:25 +00:00
2021-09-06 01:28:02 +00:00
src = fetchurl {
url = "https://github.com/Mellanox/mstflint/releases/download/v${version}/mstflint-${version}.tar.gz";
sha256 = "030vpiv44sxmjf0dng91ziq1cggwj33yp0l4xc6cdhnrv2prjs7y";
2014-09-15 02:00:25 +00:00
};
2021-09-06 01:28:02 +00:00
buildInputs = [
libibmad
openssl
zlib
];
2020-03-05 13:27:46 +00:00
hardeningDisable = [ "format" ];
dontDisableStatic = true; # the build fails without this. should probably be reported upstream
2014-09-15 02:00:25 +00:00
meta = with lib; {
description = "Open source version of Mellanox Firmware Tools (MFT)";
2020-03-05 13:27:46 +00:00
homepage = "https://github.com/Mellanox/mstflint";
license = with licenses; [ gpl2 bsd2 ];
2014-09-15 02:00:25 +00:00
platforms = platforms.linux;
};
}