diff options
Diffstat (limited to 'pkgs/by-name/md/mdk3-master/package.nix')
-rw-r--r-- | pkgs/by-name/md/mdk3-master/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/md/mdk3-master/package.nix b/pkgs/by-name/md/mdk3-master/package.nix new file mode 100644 index 0000000000000..cf8758e93802d --- /dev/null +++ b/pkgs/by-name/md/mdk3-master/package.nix @@ -0,0 +1,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; + }; +} |