lol
at 24.11-pre 45 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 autoreconfHook, 5 fetchFromGitHub, 6 gettext, 7 libmaxminddb, 8 ncurses, 9 openssl, 10 withGeolocation ? true, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "goaccess"; 15 version = "1.9.2"; 16 17 src = fetchFromGitHub { 18 owner = "allinurl"; 19 repo = "goaccess"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-FAooBAP2RbqAp7NTJNBdbRVldGCbx3SvOoTaiQ9Fl/I="; 22 }; 23 24 nativeBuildInputs = [ autoreconfHook ]; 25 26 buildInputs = [ 27 ncurses 28 openssl 29 ] ++ lib.optionals withGeolocation [ libmaxminddb ] ++ lib.optionals stdenv.isDarwin [ gettext ]; 30 31 configureFlags = [ 32 "--enable-utf8" 33 "--with-openssl" 34 ] ++ lib.optionals withGeolocation [ "--enable-geoip=mmdb" ]; 35 36 meta = with lib; { 37 description = "Real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems"; 38 homepage = "https://goaccess.io"; 39 changelog = "https://github.com/allinurl/goaccess/raw/v${version}/ChangeLog"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ ederoyd46 ]; 42 platforms = platforms.linux ++ platforms.darwin; 43 mainProgram = "goaccess"; 44 }; 45}