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

28 lines
772 B
Nix
Raw Normal View History

{ lib, stdenv, autoreconfHook, fetchFromGitHub, zlib, libibmad, openssl }:
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";
2020-07-08 12:04:52 +01:00
version = "4.14.0-3";
2014-09-15 03:00:25 +01:00
2020-03-05 13:27:46 +00:00
src = fetchFromGitHub {
owner = "Mellanox";
repo = pname;
rev = "v${version}";
2020-07-08 12:04:52 +01:00
sha256 = "0zy9npyzf7dkxlfl9mx6997aa61mk23ixpjb01ckb1wvav5k6z82";
2014-09-15 03:00:25 +01:00
};
2020-03-05 13:27:46 +00:00
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib libibmad openssl ];
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;
};
}