nixpkgs/pkgs/tools/networking/wakeonlan/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
954 B
Nix
Raw Normal View History

2021-02-13 06:19:35 +03:00
{ lib, perlPackages, fetchFromGitHub, installShellFiles }:
perlPackages.buildPerlPackage rec {
pname = "wakeonlan";
2022-07-11 09:32:23 +03:00
version = "0.42";
2021-02-13 06:19:35 +03:00
src = fetchFromGitHub {
owner = "jpoliv";
repo = pname;
2022-07-11 09:32:23 +03:00
rev = "v${version}";
sha256 = "sha256-zCOpp5iNrWwh2knBGWhiEyG9IPAnFRwH5jJLEVLBISM=";
2021-02-13 06:19:35 +03:00
};
outputs = [ "out" ];
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = [ perlPackages.TestPerlCritic perlPackages.TestPod perlPackages.TestPodCoverage ];
# Linting and formatting checks are of no interest for us.
preCheck = ''
rm -f t/93_pod_spell.t
'';
2021-02-13 06:19:35 +03:00
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 ];
};
}