masscan: add patch to fix resume functionality (#219905)
This commit is contained in:
parent
2c4fffd77c
commit
ecfff018eb
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, libpcap
|
, libpcap
|
||||||
@ -17,6 +18,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-mnGC/moQANloR5ODwRjzJzBa55OEZ9QU+9WpAHxQE/g=";
|
sha256 = "sha256-mnGC/moQANloR5ODwRjzJzBa55OEZ9QU+9WpAHxQE/g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Patches the missing "--resume" functionality
|
||||||
|
(fetchpatch {
|
||||||
|
name = "resume.patch";
|
||||||
|
url = "https://github.com/robertdavidgraham/masscan/commit/90791550bbdfac8905917a109ed74024161f14b3.patch";
|
||||||
|
sha256 = "sha256-A7Fk3MBNxaad69MrUYg7fdMG77wba5iESDTIRigYslw=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||||
# Fix broken install command
|
# Fix broken install command
|
||||||
substituteInPlace Makefile --replace "-pm755" "-pDm755"
|
substituteInPlace Makefile --replace "-pm755" "-pDm755"
|
||||||
|
Loading…
Reference in New Issue
Block a user