about summary refs log tree commit diff stats
path: root/pkgs/by-name/mp/mpp-lyrics/package.nix
blob: 76b590c7be6926b04217b168e23b7eb60f243d59 (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 = "mpp-lyrics";
  src = ./mpp-lyrics.sh;
  generateCompletions = false;
  keepPath = false;

  replacementStrings = {
    MPD_MUSIC_DIR = mpd_music_dir;
  };

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