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

  replacementStrings = {
    MPD_MUSIC_DIR = mpd_music_dir;
  };

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