mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-21 02:08:14 +02:00
packages: Add mpdris2-rs
Should be upstreamed into nixpkgs later. Basically makes music notifications a lot more useful for modern notification daemons.
This commit is contained in:
parent
e4c968bf75
commit
7ae7af253c
30
packages/mpdris2-rs.nix
Normal file
30
packages/mpdris2-rs.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "mpdris2-rs";
|
||||||
|
version = "0.2.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "szclsya";
|
||||||
|
repo = "mpdris2-rs";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-0m1nRanzqzhu6dKDvHFX4srfBTLyh5ln6sVBWBGxxw0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-WYk9vXhgAepitO3Smv/zxYt+V+aiB786cCfOcaGruQQ=";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm644 misc/mpdris2-rs.service -t $out/share/systemd/user
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Exposing MPRIS V2.2 D-Bus interface for mpd";
|
||||||
|
homepage = "https://github.com/szclsya/mpdris2-rs";
|
||||||
|
license = lib.licenses.gpl3Only;
|
||||||
|
maintainers = with lib.maintainers; [ donovanglover ];
|
||||||
|
mainProgram = "mpdris2-rs";
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user