about summary refs log tree commit diff stats
path: root/pkgs/by-name/mp/mpc-lyrics/package.nix
blob: fdb8c53ad9f4f082ab7a0ea2025d8fb6db45f1b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  sysLib,
  exiftool,
  mpc-cli,
  jq,
  less,
  locale, # dependency of less
  mpd_music_dir ? "\${XDG_MUSIC_DIR}",
}:
sysLib.writeShellScript {
  name = "mpc-lyrics";
  src = ./mpc-lyrics.sh;
  generateCompletions = false;
  keepPath = false;

  replacementStrings = {
    MPD_MUSIC_DIR = mpd_music_dir;
  };

  dependencies = [
    exiftool
    mpc-cli
    jq
    less
    locale # dependency of less
  ];
}