mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
mpd-notification: init at 0.8.7
mpd-notification mpd-notification: init at 0.8.7
This commit is contained in:
parent
8d745b5232
commit
1009283759
61
pkgs/tools/audio/mpd-notification/default.nix
Normal file
61
pkgs/tools/audio/mpd-notification/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user