masscan: fix build on darwin

This commit is contained in:
Sebastián Mancilla 2021-11-19 16:57:28 -03:00
parent 8ac9859d73
commit 53fa9753b7

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 = [