Unverified Commit a1407c95 authored by Ben Siraphob's avatar Ben Siraphob Committed by GitHub
Browse files

ncrack: fix build (#425606)

parents eac09abd a7e5f352
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -26,8 +26,18 @@ stdenv.mkDerivation rec {
      url = "https://github.com/nmap/ncrack/commit/cc4103267bab6017a4da9d41156d0c1075012eba.patch";
      sha256 = "06nlfvc7p108f8ppbcgwmj4iwmjy95xhc1sawa8c78lrx22r7gy3";
    })
    # https://github.com/nmap/ncrack/pull/127
    (fetchpatch {
      url = "https://src.fedoraproject.org/rpms/ncrack/raw/425a54633e220b6bafca37554e5585e2c6b48082/f/ncrack-0.7-fedora-c99.patch";
      hash = "sha256-kPYLPJ04dFI+WZQBecuTHXdTZhc40FDQkt35Jrddoyw=";
    })
  ];

  postPatch = ''
    substituteInPlace crypto.cc \
      --replace-fail "register" ""
  '';

  # Our version is good; the check is bad.
  configureFlags = [ "--without-zlib-version-check" ];