5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
31 lines
748 B
Nix
31 lines
748 B
Nix
{ 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=";
|
|
};
|
|
|
|
# code predates c99
|
|
env.CFLAGS = "-std=c89";
|
|
|
|
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 = [ ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "wakelan";
|
|
};
|
|
}
|