blob: cf8758e93802dbd47b0499dbfae1b1992ef806ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib
, stdenv
, fetchFromGitHub
, wirelesstools
}:
stdenv.mkDerivation rec {
pname = "mdk3-master";
version = "6-unstable-2015-05-24";
src = fetchFromGitHub {
owner = "charlesxsh";
repo = "mdk3-master";
rev = "1bf2bd31b79560aa99fc42123f70f36a03154b9e";
hash = "sha256-Jxyv7aoL8l9M7JheazJ+/YqfkDcSNx3ARNhx3G5Y+cM=";
};
runtimeDependencies = [ wirelesstools ];
installPhase = ''
runHook preInstall
make -C osdep install
mkdir -p $out/bin
install -D -m 0755 mdk3 $out/bin/
runHook postInstall
'';
meta = with lib; {
description = "MDK3 fork able to force reboot Access Points";
homepage = "https://github.com/charlesxsh/mdk3-master";
changelog = "https://github.com/charlesxsh/mdk3-master/blob/${src.rev}/CHANGELOG";
license = licenses.gpl2Only;
maintainers = with maintainers; [ pinpox ];
mainProgram = "mdk3";
platforms = platforms.all;
};
}
|