summary refs log tree commit diff
path: root/pkgs/tools/audio/mp3cat/default.nix
blob: acd11bc75e6f7417f62ed154bc369b5a4fcd79aa (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
28
29
30
31
32
33
34
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "mp3cat";
  version = "0.5";

  src = fetchFromGitHub {
    owner = "tomclegg";
    repo = pname;
    rev = version;
    sha256 = "0n6hjg2wgd06m561zc3ib5w2m3pwpf74njv2b2w4sqqh5md2ymfr";
  };

  makeFlags = [
    "PREFIX=${placeholder "out"}"
  ];

  installTargets = [
    "install_bin"
  ];

  meta = with stdenv.lib; {
    description = "A command line program which concatenates MP3 files";
    longDescription = ''
      A command line program which concatenates MP3 files, mp3cat
      only outputs MP3 frames with valid headers, even if there is extra garbage
      in its input stream
    '';
    homepage = https://github.com/tomclegg/mp3cat;
    license = licenses.gpl2;
    maintainers = [ maintainers.omnipotententity ];
    platforms = platforms.all;
  };
}