about summary refs log tree commit diff stats
path: root/pkgs/by-name/mp/mpc-lyrics/package.nix
blob: 08cc8e48c4c730be3adb17d3cbae898c5fa8efda (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,
  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
    jq
    less
    locale # dependency of less
  ];
}