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

stdenv.mkDerivation rec {
  name = "wakelan-1.1";

  src = fetchurl {
    url = "mirror://metalab/system/network/misc/${name}.tar.gz";
    sha256 = "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x";
  };

  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;
  };
}