about summary refs log tree commit diff
path: root/pkgs/applications/audio/pyradio
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-05-25 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2022-05-25 04:20:00 +0000
commit56e1d67f0f016c367d845548485274f2eb473c4e (patch)
tree48352907b97e4f31ad3b9cb764c5bd1d479b7083 /pkgs/applications/audio/pyradio
parent6df916ac83eb937cf8fa770de649b86d523d5e0a (diff)
pyradio: install manpage
Diffstat (limited to 'pkgs/applications/audio/pyradio')
-rw-r--r--pkgs/applications/audio/pyradio/default.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/pkgs/applications/audio/pyradio/default.nix b/pkgs/applications/audio/pyradio/default.nix
index a5d218ff7d720..861147ec10aeb 100644
--- a/pkgs/applications/audio/pyradio/default.nix
+++ b/pkgs/applications/audio/pyradio/default.nix
@@ -1,15 +1,9 @@
-{ lib, python3Packages, fetchFromGitHub }:
+{ lib, python3Packages, fetchFromGitHub, installShellFiles }:
 
 python3Packages.buildPythonApplication rec {
   pname = "pyradio";
   version = "0.8.9.20";
 
-  propagatedBuildInputs = with python3Packages; [
-    requests
-    psutil
-    dnspython
-  ];
-
   src = fetchFromGitHub {
     owner = "coderholic";
     repo = pname;
@@ -17,10 +11,22 @@ python3Packages.buildPythonApplication rec {
     sha256 = "sha256-wSu6vTvBkH7vC2c+jj6zaRaR1Poarsgxa5i2mN0dnoE=";
   };
 
+  nativeBuildInputs = [ installShellFiles ];
+
+  propagatedBuildInputs = with python3Packages; [
+    requests
+    psutil
+    dnspython
+  ];
+
   checkPhase = ''
     $out/bin/pyradio --help
   '';
 
+  postInstall = ''
+    installManPage *.1
+  '';
+
   meta = with lib; {
     homepage = "http://www.coderholic.com/pyradio/";
     description = "Curses based internet radio player";