diff --git a/pkgs/tools/audio/mp3cat/default.nix b/pkgs/tools/audio/mp3cat/default.nix new file mode 100644 index 000000000000..19f670793ba2 --- /dev/null +++ b/pkgs/tools/audio/mp3cat/default.nix @@ -0,0 +1,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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9741d9ba31ff..96f5e2115454 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1680,6 +1680,8 @@ in mp3blaster = callPackage ../applications/audio/mp3blaster { }; + mp3cat = callPackage ../tools/audio/mp3cat {}; + mp3fs = callPackage ../tools/filesystems/mp3fs { }; mpdas = callPackage ../tools/audio/mpdas { };