Merge pull request #146664 from smancill/ZHF-masscan

masscan: fix build on darwin
This commit is contained in:
Domen Kožar 2021-11-20 14:44:53 +03:00 committed by GitHub
commit c2fc381a95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-mnGC/moQANloR5ODwRjzJzBa55OEZ9QU+9WpAHxQE/g=";
};
postPatch = lib.optionalString stdenv.isDarwin ''
# Fix broken install command
substituteInPlace Makefile --replace "-pm755" "-pDm755"
'';
nativeBuildInputs = [ makeWrapper installShellFiles ];
makeFlags = [