summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/audio
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-01-08 02:07:34 +0100
committerJan Tojnar <jtojnar@gmail.com>2021-01-08 02:07:34 +0100
commite6c0c98940bc72280216639cd9fb16745b7e1103 (patch)
tree365c0fb567ff279f2475445a8ba001776629df0e /pkgs/tools/audio
parent5c072a088d7b0efd3a8185953fe21efcd6c1d94a (diff)
parent9414948a5a19463acce5a7f2b2206c39ecb6359f (diff)
Merge branch 'master' into staging-next
zynaddsubfx conflict has been updated to 3.0.1, which conflicted with rewrite after 3.0.5 update on a different branch.
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r--pkgs/tools/audio/mpris-scrobbler/default.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/tools/audio/mpris-scrobbler/default.nix b/pkgs/tools/audio/mpris-scrobbler/default.nix
new file mode 100644
index 000000000000..b768e0166435
--- /dev/null
+++ b/pkgs/tools/audio/mpris-scrobbler/default.nix
@@ -0,0 +1,60 @@
+{ stdenv
+, fetchFromGitHub
+, nix-update-script
+, curl
+, dbus
+, libevent
+, m4
+, meson
+, ninja
+, pkg-config
+, scdoc
+, json_c
+, xdg_utils
+}:
+
+stdenv.mkDerivation rec {
+ pname = "mpris-scrobbler";
+ version = "0.4.0.1";
+
+ src = fetchFromGitHub {
+ owner = "mariusor";
+ repo = "mpris-scrobbler";
+ rev = "v${version}";
+ sha256 = "0jzmgcb9a19hl8y7iwy8l3cc2vgzi0scw7r5q72kszfyxn0yk2gs";
+ };
+
+ postPatch = ''
+ substituteInPlace src/signon.c \
+ --replace "/usr/bin/xdg-open" "${xdg_utils}/bin/xdg-open"
+ '';
+
+ nativeBuildInputs = [
+ m4
+ meson
+ ninja
+ pkg-config
+ scdoc
+ ];
+
+ buildInputs = [
+ curl
+ dbus
+ json_c
+ libevent
+ ];
+
+ passthru = {
+ updateScript = nix-update-script {
+ attrPath = pname;
+ };
+ };
+
+ meta = with stdenv.lib; {
+ description = "Minimalistic scrobbler for libre.fm & last.fm";
+ homepage = "https://github.com/mariusor/mpris-scrobbler";
+ license = licenses.mit;
+ maintainers = with maintainers; [ emantor ];
+ platforms = platforms.unix;
+ };
+}