forked from mirrors/nixpkgs
curseradio: init at 0.2
This commit is contained in:
parent
d956f2279b
commit
810df3f55c
36
pkgs/applications/audio/curseradio/default.nix
Normal file
36
pkgs/applications/audio/curseradio/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
11
pkgs/applications/audio/curseradio/mpv.patch
Normal file
11
pkgs/applications/audio/curseradio/mpv.patch
Normal 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',
|
|
@ -16768,6 +16768,8 @@ in
|
||||||
|
|
||||||
cuneiform = callPackage ../tools/graphics/cuneiform {};
|
cuneiform = callPackage ../tools/graphics/cuneiform {};
|
||||||
|
|
||||||
|
curseradio = callPackage ../applications/audio/curseradio { };
|
||||||
|
|
||||||
cutecom = libsForQt5.callPackage ../tools/misc/cutecom { };
|
cutecom = libsForQt5.callPackage ../tools/misc/cutecom { };
|
||||||
|
|
||||||
cutegram =
|
cutegram =
|
||||||
|
|
Loading…
Reference in a new issue