2011-07-25 21:07:36 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-29 15:33:25 +02:00
|
|
|
version = "0.5.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libmpeg2";
|
2014-08-29 15:33:25 +02:00
|
|
|
|
2011-07-25 21:07:36 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://libmpeg2.sourceforge.net/files/${pname}-${version}.tar.gz";
|
2011-07-25 21:07:36 +02:00
|
|
|
sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny";
|
|
|
|
};
|
|
|
|
|
2015-03-05 21:47:40 +01:00
|
|
|
# Otherwise clang fails with 'duplicate symbol ___sputc'
|
2019-10-26 17:39:27 +02:00
|
|
|
buildFlags = stdenv.lib.optional stdenv.isDarwin "CFLAGS=-std=gnu89";
|
2015-03-05 21:47:40 +01:00
|
|
|
|
2011-07-25 21:07:36 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://libmpeg2.sourceforge.net/;
|
|
|
|
description = "A free library for decoding mpeg-2 and mpeg-1 video streams";
|
2014-08-29 15:33:25 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2019-12-05 08:29:48 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2011-07-25 21:07:36 +02:00
|
|
|
};
|
|
|
|
}
|