1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 bison,
7 flac,
8 flex,
9 id3v2,
10 vorbis-tools,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "cuetools";
15 version = "1.4.1";
16
17 src = fetchFromGitHub {
18 owner = "svend";
19 repo = "cuetools";
20 rev = version;
21 sha256 = "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3";
22 };
23
24 nativeBuildInputs = [ autoreconfHook ];
25
26 buildInputs = [
27 bison
28 flac
29 flex
30 id3v2
31 vorbis-tools
32 ];
33
34 postInstall = ''
35 # add link for compatibility with Debian-based distros, which package `cuetag.sh` as `cuetag`
36 ln -s $out/bin/cuetag.sh $out/bin/cuetag
37 '';
38
39 meta = with lib; {
40 description = "Set of utilities for working with cue files and toc files";
41 homepage = "https://github.com/svend/cuetools";
42 license = licenses.gpl2Only;
43 maintainers = with maintainers; [
44 codyopel
45 jcumming
46 ];
47 platforms = platforms.all;
48 };
49}