44 lines
894 B
Nix
44 lines
894 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
libtool,
|
|
libmad,
|
|
libid3tag,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmp3splt";
|
|
version = "0.9.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mp3splt/${pname}-${version}.tar.gz";
|
|
sha256 = "1p1mn2hsmj5cp40fnc8g1yfvk72p8pjxi866gjdkgjsqrr7xdvih";
|
|
};
|
|
|
|
patches = [
|
|
# Fix buffer overflow in string formatting: https://github.com/mp3splt/mp3splt/pull/368
|
|
./fix-buffer-overflow.patch
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
nativeBuildInputs = [ libtool ];
|
|
buildInputs = [
|
|
libmad
|
|
libid3tag
|
|
];
|
|
|
|
configureFlags = [ "--disable-pcre" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sourceforge.net/projects/mp3splt/";
|
|
description = "Utility to split mp3, ogg vorbis and FLAC files without decoding";
|
|
maintainers = with maintainers; [ bosu ];
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl2;
|
|
};
|
|
}
|