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