mpd-notification: init at 0.8.7

mpd-notification

mpd-notification: init at 0.8.7
This commit is contained in:
caitlin 2023-06-21 23:32:02 -05:00 committed by Caitlin Davitt
parent 8d745b5232
commit 1009283759
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,61 @@
{ lib
, stdenv
, pkg-config
, fetchFromGitHub
, systemd
, file
, iniparser
, ffmpeg
, libnotify
, libmpdclient
, discount
}:
stdenv.mkDerivation rec {
pname = "mpd-notification";
version = "0.8.7";
src = fetchFromGitHub {
owner = "eworm-de";
repo = "mpd-notification";
rev = version;
hash = "sha256-lBvx2eYxFJUAxR1LrjWHZUeAo+WnQKmPYJVAJTeXqHY=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
iniparser
libnotify
file
ffmpeg
libmpdclient
discount
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv mpd-notification $out/bin
mkdir -p $out/lib/systemd/user
cp systemd/mpd-notification.service $out/lib/systemd/user
runHook postInstall
'';
postPatch = ''
substituteInPlace systemd/mpd-notification.service --replace /usr $out
'';
meta = with lib; {
description = "Notifications for mpd";
homepage = "https://github.com/eworm-de/mpd-notification";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ CaitlinDavitt ];
platforms = platforms.unix;
};
}

View File

@ -5631,6 +5631,8 @@ with pkgs;
mpd-mpris = callPackage ../tools/audio/mpd-mpris { };
mpd-notification = callPackage ../tools/audio/mpd-notification { };
mpd-sima = python3Packages.callPackage ../tools/audio/mpd-sima { };
mpris-scrobbler = callPackage ../tools/audio/mpris-scrobbler { };