curseradio: init at 0.2

This commit is contained in:
eyjhbb@gmail.com 2019-04-04 18:05:24 +02:00 committed by worldofpeace
parent d956f2279b
commit 810df3f55c
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, substituteAll, python3Packages, mpv }:
python3Packages.buildPythonApplication rec {
version = "0.2";
pname = "curseradio";
src = fetchFromGitHub {
owner = "chronitis";
repo = pname;
rev = "1bd4bd0faeec675e0647bac9a100b526cba19f8d";
sha256 = "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i";
};
propagatedBuildInputs = with python3Packages; [
requests
lxml
pyxdg
];
patches = [
(substituteAll {
src = ./mpv.patch;
inherit mpv;
})
];
# No tests
doCheck = false;
meta = with stdenv.lib; {
description = "Command line radio player";
homepage = "https://github.com/chronitis/curseradio";
license = licenses.mit;
maintainers = [ maintainers.eyjhb ];
};
}

View file

@ -0,0 +1,11 @@
--- a/curseradio/curseradio.py
+++ b/curseradio/curseradio.py
@@ -30,7 +30,7 @@ import re
CONFIG_DEFAULT = {
'opml': {'root': "http://opml.radiotime.com/"},
- 'playback': {'command': '/usr/bin/mpv'},
+ 'playback': {'command': '@mpv@/bin/mpv'},
'interface': {'keymap': 'default'},
'keymap.default': {
'up': 'KEY_UP',

View file

@ -16768,6 +16768,8 @@ in
cuneiform = callPackage ../tools/graphics/cuneiform {};
curseradio = callPackage ../applications/audio/curseradio { };
cutecom = libsForQt5.callPackage ../tools/misc/cutecom { };
cutegram =