about summary refs log tree commit diff
path: root/pkgs/tools/misc/mstflint
diff options
context:
space:
mode:
authorajs124 <git@ajs124.de>2020-03-05 14:27:46 +0100
committerajs124 <git@ajs124.de>2020-05-12 23:43:07 +0200
commit1df35d94ec6e96bb12683d3017d96a0e3dbc93e4 (patch)
tree3e463bff7896d215821156c18fd84088b0aeeb22 /pkgs/tools/misc/mstflint
parenta2ad2bad4876cab4447ab6d9b29193ffd8b073cf (diff)
mstflint: 4.4 -> 4.14
fix build
Diffstat (limited to 'pkgs/tools/misc/mstflint')
-rw-r--r--pkgs/tools/misc/mstflint/default.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/tools/misc/mstflint/default.nix b/pkgs/tools/misc/mstflint/default.nix
index c44934ef45c36..cf90e93929de2 100644
--- a/pkgs/tools/misc/mstflint/default.nix
+++ b/pkgs/tools/misc/mstflint/default.nix
@@ -1,19 +1,26 @@
-{ stdenv, fetchurl, zlib, libibmad }:
+{ stdenv, autoreconfHook, fetchFromGitHub, zlib, libibmad, openssl }:
 
 stdenv.mkDerivation rec {
-  name = "mstflint-4.4.0-1.12.gd1edd58";
+  pname = "mstflint";
+  version = "4.14.0-1";
 
-  src = fetchurl {
-    url = "https://www.openfabrics.org/downloads/mstflint/${name}.tar.gz";
-    sha256 = "0kg33i5s5zdc7kigww62r0b824zfw06r757fl6jwrq7lj91j0380";
+  src = fetchFromGitHub {
+    owner = "Mellanox";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0xrwx623vl17cqzpacil74m2fi4xrshgvvzxiplz1wq47gq7wp1i";
   };
 
-  buildInputs = [ zlib libibmad ];
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ zlib libibmad openssl ];
+
+  hardeningDisable = [ "format" ];
+
+  dontDisableStatic = true;  # the build fails without this. should probably be reported upstream
 
   meta = with stdenv.lib; {
-    homepage = "https://www.openfabrics.org/";
-    license = licenses.gpl2;
+    homepage = "https://github.com/Mellanox/mstflint";
+    license = with licenses; [ gpl2 bsd2 ];
     platforms = platforms.linux;
-    broken = true; # 2018-04-11
   };
 }