summary refs log tree commit diff
path: root/pkgs/tools/networking/wol
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2019-04-27 17:22:13 +0800
committerPeter Hoeg <peter@hoeg.com>2019-04-27 17:22:13 +0800
commit808616941380d9bf691b5e3b4fc1b06aeef4de21 (patch)
treecfb2bcfec54274c3bedcd965a682598a9672dc96 /pkgs/tools/networking/wol
parentdfd8f84aef129f1978e446b5d45ef05cd4421821 (diff)
downloadnixpkgs-808616941380d9bf691b5e3b4fc1b06aeef4de21.tar
nixpkgs-808616941380d9bf691b5e3b4fc1b06aeef4de21.tar.gz
nixpkgs-808616941380d9bf691b5e3b4fc1b06aeef4de21.tar.bz2
nixpkgs-808616941380d9bf691b5e3b4fc1b06aeef4de21.tar.lz
nixpkgs-808616941380d9bf691b5e3b4fc1b06aeef4de21.tar.xz
nixpkgs-808616941380d9bf691b5e3b4fc1b06aeef4de21.tar.zst
nixpkgs-808616941380d9bf691b5e3b4fc1b06aeef4de21.zip
wol: fix manpage generation
Diffstat (limited to 'pkgs/tools/networking/wol')
-rw-r--r--pkgs/tools/networking/wol/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/tools/networking/wol/default.nix b/pkgs/tools/networking/wol/default.nix
index 5349abec161..570d800311e 100644
--- a/pkgs/tools/networking/wol/default.nix
+++ b/pkgs/tools/networking/wol/default.nix
@@ -1,22 +1,24 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, perl }:
 
 stdenv.mkDerivation rec {
-  name = "wol-${version}";
+  pname = "wol";
   version = "0.7.1";
-  proj = "wake-on-lan";
-
-  enableParallelBuilding = true;
 
   src = fetchurl {
-    url = "mirror://sourceforge/${proj}/${name}.tar.gz";
+    url = "mirror://sourceforge/wake-on-lan/${pname}-${version}.tar.gz";
     sha256 = "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270";
   };
 
-  meta = {
+  # for pod2man in order to get a manpage
+  nativeBuildInputs = [ perl ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
     description = "Implements Wake On LAN functionality in a small program";
     homepage = https://sourceforge.net/projects/wake-on-lan/;
-    license = stdenv.lib.licenses.gpl2;
-    platforms = stdenv.lib.platforms.linux;
-    maintainers = with stdenv.lib.maintainers; [ makefu ];
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ makefu ];
+    platforms = platforms.linux;
   };
 }