Skip to content

Commit

Permalink
Merge pull request NixOS#112962 from SuperSandro2000/wakeonlan
Browse files Browse the repository at this point in the history
wakeonlan: init at 0.41
  • Loading branch information
SuperSandro2000 authored Feb 13, 2021
2 parents f4e816f + 6dacf11 commit d933d28
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/tools/networking/wakeonlan/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ lib, perlPackages, fetchFromGitHub, installShellFiles }:

perlPackages.buildPerlPackage rec {
pname = "wakeonlan";
version = "0.41";

src = fetchFromGitHub {
owner = "jpoliv";
repo = pname;
rev = "wakeonlan-${version}";
sha256 = "0m48b39lz0yc5ckx2jx8y2p4c8npjngxl9wy86k43xgsd8mq1g3c";
};

outputs = [ "out" ];

nativeBuildInputs = [ installShellFiles ];

installPhase = ''
install -Dt $out/bin wakeonlan
installManPage blib/man1/wakeonlan.1
'';

meta = with lib; {
description = "Perl script for waking up computers via Wake-On-LAN magic packets";
homepage = "https://github.com/jpoliv/wakeonlan";
license = licenses.artistic1;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3839,6 +3839,8 @@ in

utahfs = callPackage ../applications/networking/utahfs { };

wakeonlan = callPackage ../tools/networking/wakeonlan { };

wallutils = callPackage ../tools/graphics/wallutils { };

wayland-utils = callPackage ../tools/wayland/wayland-utils { };
Expand Down

0 comments on commit d933d28

Please sign in to comment.