feat(spotifyd): Enable spotifyd module to play music in background
This commit is contained in:
parent
d9aecce780
commit
3fba87b4b1
8 changed files with 101 additions and 0 deletions
27
pkgs/spotifyd.nix
Normal file
27
pkgs/spotifyd.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
srcs,
|
||||
spotifyd,
|
||||
rustPlatform,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (srcs.spotifyd) src date version;
|
||||
in
|
||||
spotifyd.overrideAttrs (
|
||||
final: prev: {
|
||||
inherit src;
|
||||
version =
|
||||
if prev.version != "0.4.1" then
|
||||
throw ''
|
||||
Please remove <pkgs/spotifyd.nix>
|
||||
''
|
||||
else
|
||||
"0-unstable-${date}-git${version}";
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (final)
|
||||
src
|
||||
;
|
||||
hash = "sha256-WwShp1ebk89cBqRXqKDgbwGZraCDjQAOxoL4uEIq2aw=";
|
||||
};
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue