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 03:28:02 +02:00
{ lib
, stdenv
, fetchurl
, libibmad
, openssl
, zlib
}:
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";
2021-09-06 03:28:02 +02:00
version = "4.17.0-1";
2014-09-15 04:00:25 +02:00
2021-09-06 03:28:02 +02:00
src = fetchurl {
url = "https://github.com/Mellanox/mstflint/releases/download/v${version}/mstflint-${version}.tar.gz";
sha256 = "030vpiv44sxmjf0dng91ziq1cggwj33yp0l4xc6cdhnrv2prjs7y";
2014-09-15 04:00:25 +02:00
};
2021-09-06 03:28:02 +02:00
buildInputs = [
libibmad
openssl
zlib
];
2020-03-05 14:27:46 +01:00
hardeningDisable = [ "format" ];
dontDisableStatic = true; # the build fails without this. should probably be reported upstream
2014-09-15 04:00:25 +02:00
meta = with lib; {
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;
};
}