Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, 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 = 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 = lib.licenses.gpl2; 19 maintainers = with lib.maintainers; [ ]; 20 platforms = with lib.platforms; unix; 21 }; 22}