at v192 650 B view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 version = "0.5.1"; 5 name = "libmpeg2-${version}"; 6 7 src = fetchurl { 8 url = "http://libmpeg2.sourceforge.net/files/${name}.tar.gz"; 9 sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"; 10 }; 11 12 # Otherwise clang fails with 'duplicate symbol ___sputc' 13 buildFlags = stdenv.lib.optionalString stdenv.isDarwin "CFLAGS=-std=gnu89"; 14 15 meta = { 16 homepage = http://libmpeg2.sourceforge.net/; 17 description = "A free library for decoding mpeg-2 and mpeg-1 video streams"; 18 license = stdenv.lib.licenses.gpl2; 19 maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; 20 }; 21}