{ lib, stdenv, fetchurl, libibumad }:

stdenv.mkDerivation rec {
  pname = "libibmad";
  version = "1.3.13";

  src = fetchurl {
    url = "https://www.openfabrics.org/downloads/management/${pname}-${version}.tar.gz";
    sha256 = "02sj8k2jpcbiq8s0l2lqk4vwji2dbb2lc730cv1yzv0zr0hxgk8p";
  };

  buildInputs = [ libibumad ];

  meta = with lib; {
    homepage = "https://www.openfabrics.org/";
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}
