summary refs log tree commit diff
path: root/pkgs/tools/networking/wakelan/default.nix
blob: 7e9bcc1a70caf10ff73c60615a88232ae857490b (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
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "wakelan";
  version = "1.1";

  src = fetchurl {
    url = "mirror://ibiblioPubLinux/system/network/misc/${pname}-${version}.tar.gz";
    hash = "sha256-PfXrj4d2SHmatiPPFxjsxvhusML1HTRNjoYEQtzFzW8=";
  };

  preInstall = ''
    mkdir -p $out/man/man1 $out/bin
  '';

  meta = {
    description = "Send a wake-on-lan packet";
    longDescription = ''
      WakeLan sends a properly formatted UDP packet across the
      network which will cause a wake-on-lan enabled computer to
      power on.
   '';
    license = lib.licenses.gpl2Plus;
    maintainers = [ lib.maintainers.viric ];
    platforms = lib.platforms.unix;
  };
}