nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 22 lines 688 B view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 version = "0.5.1"; 5 pname = "libmpeg2"; 6 7 src = fetchurl { 8 url = "http://libmpeg2.sourceforge.net/files/${pname}-${version}.tar.gz"; 9 sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"; 10 }; 11 12 # Otherwise clang fails with 'duplicate symbol ___sputc' 13 buildFlags = stdenv.lib.optional 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; [ ]; 20 platforms = with stdenv.lib.platforms; unix; 21 }; 22}