3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/mstflint/default.nix
2021-09-06 04:06:56 +02:00

35 lines
759 B
Nix

{ lib
, stdenv
, fetchurl
, libibmad
, openssl
, zlib
}:
stdenv.mkDerivation rec {
pname = "mstflint";
version = "4.17.0-1";
src = fetchurl {
url = "https://github.com/Mellanox/mstflint/releases/download/v${version}/mstflint-${version}.tar.gz";
sha256 = "030vpiv44sxmjf0dng91ziq1cggwj33yp0l4xc6cdhnrv2prjs7y";
};
buildInputs = [
libibmad
openssl
zlib
];
hardeningDisable = [ "format" ];
dontDisableStatic = true; # the build fails without this. should probably be reported upstream
meta = with lib; {
description = "Open source version of Mellanox Firmware Tools (MFT)";
homepage = "https://github.com/Mellanox/mstflint";
license = with licenses; [ gpl2 bsd2 ];
platforms = platforms.linux;
};
}