parent
81f5131292
commit
660ea29885
|
@ -1,4 +1,4 @@
|
||||||
{ lib, perlPackages, fetchFromGitHub, installShellFiles }:
|
{ lib, stdenv, perlPackages, fetchFromGitHub, installShellFiles, shortenPerlShebang }:
|
||||||
|
|
||||||
perlPackages.buildPerlPackage rec {
|
perlPackages.buildPerlPackage rec {
|
||||||
pname = "wakeonlan";
|
pname = "wakeonlan";
|
||||||
|
@ -13,7 +13,7 @@ perlPackages.buildPerlPackage rec {
|
||||||
|
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||||
|
|
||||||
nativeCheckInputs = [ perlPackages.TestPerlCritic perlPackages.TestPod perlPackages.TestPodCoverage ];
|
nativeCheckInputs = [ perlPackages.TestPerlCritic perlPackages.TestPod perlPackages.TestPodCoverage ];
|
||||||
# Linting and formatting checks are of no interest for us.
|
# Linting and formatting checks are of no interest for us.
|
||||||
|
@ -24,6 +24,8 @@ perlPackages.buildPerlPackage rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dt $out/bin wakeonlan
|
install -Dt $out/bin wakeonlan
|
||||||
installManPage blib/man1/wakeonlan.1
|
installManPage blib/man1/wakeonlan.1
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
shortenPerlShebang $out/bin/wakeonlan
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue