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

35 lines
759 B
Nix
Raw Normal View History

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