1{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, flex, rdma-core }:
2
3stdenv.mkDerivation rec {
4 pname = "opensm";
5 version = "3.3.24";
6
7 src = fetchFromGitHub {
8 owner = "linux-rdma";
9 repo = "opensm";
10 rev = version;
11 sha256 = "sha256-/bqo5r9pVt7vg29xaRRO/9k21AMlmoe2327Ot5gVIwc=";
12 };
13
14 nativeBuildInputs = [ autoconf automake libtool bison flex ];
15
16 buildInputs = [ rdma-core ];
17
18 preConfigure = ''
19 patchShebangs ./autogen.sh
20 ./autogen.sh
21 '';
22
23 enableParallelBuilding = true;
24
25 meta = with lib; {
26 description = "Infiniband subnet manager";
27 homepage = "https://www.openfabrics.org/";
28 license = licenses.gpl2; # dual licensed as 2-clause BSD
29 maintainers = [ maintainers.aij ];
30 platforms = [ "x86_64-linux" ];
31 };
32}