mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
35 lines
759 B
Nix
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;
|
|
};
|
|
}
|