1 { lib, stdenv, perlPackages, fetchFromGitHub, installShellFiles, shortenPerlShebang }:
3 perlPackages.buildPerlPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-zCOpp5iNrWwh2knBGWhiEyG9IPAnFRwH5jJLEVLBISM=";
16 nativeBuildInputs = [ installShellFiles ] ++ lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;
18 nativeCheckInputs = [ perlPackages.TestPerlCritic perlPackages.TestPod perlPackages.TestPodCoverage ];
19 # Linting and formatting checks are of no interest for us.
21 rm -f t/93_pod_spell.t
25 install -Dt $out/bin wakeonlan
26 installManPage blib/man1/wakeonlan.1
27 '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
28 shortenPerlShebang $out/bin/wakeonlan
32 description = "Perl script for waking up computers via Wake-On-LAN magic packets";
33 homepage = "https://github.com/jpoliv/wakeonlan";
34 license = licenses.artistic1;
35 maintainers = with maintainers; [ SuperSandro2000 ];
36 mainProgram = "wakeonlan";