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
33
pkgs/tools/networking/mdk4/default.nix
Normal file
33
pkgs/tools/networking/mdk4/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libnl, libpcap, pkg-config }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "mdk4";
|
||||
version = "unstable-2021-04-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aircrack-ng";
|
||||
repo = "mdk4";
|
||||
rev = "e94422ce8e4b8dcd132d658345814df7e63bfa41";
|
||||
sha256 = "sha256-pZS7HQBKlSZJGqoZlSyBUzXC3osswcB56cBzgm+Sbwg=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/share/man
|
||||
|
||||
substituteInPlace src/Makefile --replace '/usr/local/src/mdk4' '$out'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ libnl libpcap ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" "SBINDIR=$(PREFIX)/bin" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool that injects data into wireless networks";
|
||||
homepage = "https://github.com/aircrack-ng/mdk4";
|
||||
maintainers = with maintainers; [ fortuneteller2k ];
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue