diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-13 04:19:35 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-13 04:21:22 +0100 |
commit | 6dacf11bbe5b936cc5faa1335b3897785986449e (patch) | |
tree | 2276a6937027348360a762147013d8771c176a4a | |
parent | 5852a21819542e6809f68ba5a798600e69874e76 (diff) |
wakeonlan: init at 0.41
-rw-r--r-- | pkgs/tools/networking/wakeonlan/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/networking/wakeonlan/default.nix b/pkgs/tools/networking/wakeonlan/default.nix new file mode 100644 index 0000000000000..48b99cadf2b9b --- /dev/null +++ b/pkgs/tools/networking/wakeonlan/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 698ec43fcdce2..a175ce23c3583 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3835,6 +3835,8 @@ in utahfs = callPackage ../applications/networking/utahfs { }; + wakeonlan = callPackage ../tools/networking/wakeonlan { }; + wallutils = callPackage ../tools/graphics/wallutils { }; wayland-utils = callPackage ../tools/wayland/wayland-utils { }; |