504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, pkg-config
|
|
, fetchFromGitHub
|
|
, 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;
|
|
mainProgram = "mpd-notification";
|
|
};
|
|
}
|