Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 version = "0.5.1"; 9 pname = "libmpeg2"; 10 11 src = fetchurl { 12 url = "http://libmpeg2.sourceforge.net/files/${pname}-${version}.tar.gz"; 13 sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny"; 14 }; 15 16 # Otherwise clang fails with 'duplicate symbol ___sputc' 17 buildFlags = lib.optional stdenv.hostPlatform.isDarwin "CFLAGS=-std=gnu89"; 18 19 meta = { 20 homepage = "http://libmpeg2.sourceforge.net/"; 21 description = "Free library for decoding mpeg-2 and mpeg-1 video streams"; 22 license = lib.licenses.gpl2; 23 maintainers = [ ]; 24 platforms = with lib.platforms; unix; 25 }; 26}