@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub
2+, autoreconfHook, pkgconfig
3+, libsndfile }:
4+
5+stdenv.mkDerivation rec {
6+
7+ name = "twolame-${version}";
8+ version = "2017-09-27";
9+
10+ src = fetchFromGitHub {
11+ owner = "njh";
12+ repo = "twolame";
13+ rev = "977c8ac55d8ca6d5f35d1d413a119dac2b3b0333";
14+ sha256 = "1rq3yc8ygzdqid9zk6pixmm4w9sk2vrlx217lhn5bjaglv7iyf7x";
15+ };
16+
17+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
18+ buildInputs = [ libsndfile ];
19+
20+ meta = with stdenv.lib;{
21+ description = "A MP2 encoder";
22+ longDescription = ''
23+ TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
24+ tooLAME by Mike Cheng, which in turn is based upon the ISO dist10
25+ code and portions of LAME.
26+ '';
27+ homepage = http://www.twolame.org/;
28+ license = with licenses; [ lgpl2Plus ];
29+ platforms = with platforms; [ unix ];
30+ maintainers = with maintainers; [ AndersonTorres ];
31+ };
32+}