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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
759 B
Nix
Raw Normal View History

2021-09-06 02:28:02 +01:00
{ lib
, stdenv
, fetchurl
, libibmad
, openssl
, zlib
}:
2014-09-15 03:00:25 +01:00
2016-08-24 19:04:38 +01:00
stdenv.mkDerivation rec {
2020-03-05 13:27:46 +00:00
pname = "mstflint";
2021-09-06 02:28:02 +01:00
version = "4.17.0-1";
2014-09-15 03:00:25 +01:00
2021-09-06 02:28:02 +01:00
src = fetchurl {
url = "https://github.com/Mellanox/mstflint/releases/download/v${version}/mstflint-${version}.tar.gz";
sha256 = "030vpiv44sxmjf0dng91ziq1cggwj33yp0l4xc6cdhnrv2prjs7y";
2014-09-15 03:00:25 +01:00
};
2021-09-06 02:28:02 +01: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 03:00:25 +01: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 03:00:25 +01:00
platforms = platforms.linux;
};
}