1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "mp3cat";
9 version = "0.5";
10
11 src = fetchFromGitHub {
12 owner = "tomclegg";
13 repo = "mp3cat";
14 rev = version;
15 sha256 = "0n6hjg2wgd06m561zc3ib5w2m3pwpf74njv2b2w4sqqh5md2ymfr";
16 };
17
18 makeFlags = [
19 "PREFIX=${placeholder "out"}"
20 ];
21
22 installTargets = [
23 "install_bin"
24 ];
25
26 meta = with lib; {
27 description = "Command line program which concatenates MP3 files";
28 longDescription = ''
29 A command line program which concatenates MP3 files, mp3cat
30 only outputs MP3 frames with valid headers, even if there is extra garbage
31 in its input stream
32 '';
33 homepage = "https://github.com/tomclegg/mp3cat";
34 license = licenses.gpl2Plus;
35 maintainers = [ maintainers.omnipotententity ];
36 platforms = platforms.all;
37 mainProgram = "mp3cat";
38 };
39}