uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
60
pkgs/tools/security/masscan/default.nix
Normal file
60
pkgs/tools/security/masscan/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, makeWrapper
|
||||
, libpcap
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "masscan";
|
||||
version = "1.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "robertdavidgraham";
|
||||
repo = "masscan";
|
||||
rev = version;
|
||||
sha256 = "sha256-mnGC/moQANloR5ODwRjzJzBa55OEZ9QU+9WpAHxQE/g=";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
# Fix broken install command
|
||||
substituteInPlace Makefile --replace "-pm755" "-pDm755"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"GITVER=${version}"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
installManPage doc/masscan.?
|
||||
|
||||
install -Dm444 -t $out/etc/masscan data/exclude.conf
|
||||
install -Dm444 -t $out/share/doc/masscan doc/*.{html,js,md}
|
||||
install -Dm444 -t $out/share/licenses/masscan LICENSE
|
||||
|
||||
wrapProgram $out/bin/masscan \
|
||||
--prefix LD_LIBRARY_PATH : "${libpcap}/lib"
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
$out/bin/masscan --selftest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast scan of the Internet";
|
||||
homepage = "https://github.com/robertdavidgraham/masscan";
|
||||
changelog = "https://github.com/robertdavidgraham/masscan/releases/tag/${version}";
|
||||
license = licenses.agpl3Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ rnhmjoj ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue