Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 1.3 kB view raw
1{ 2 mkDerivation, 3 lib, 4 stdenv, 5 fetchFromGitHub, 6 qmake, 7 boost, 8}: 9 10mkDerivation rec { 11 pname = "glogg"; 12 version = "1.1.4"; 13 14 src = fetchFromGitHub { 15 owner = "nickbnf"; 16 repo = "glogg"; 17 rev = "v${version}"; 18 sha256 = "0hf1c2m8n88frmxmyn0ndr8129p7iky49nq565sw1asaydm5z6pb"; 19 }; 20 21 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' 22 substituteInPlace glogg.pro \ 23 --replace "boost_program_options-mt" "boost_program_options" 24 ''; 25 26 nativeBuildInputs = [ qmake ]; 27 buildInputs = [ boost ]; 28 29 qmakeFlags = [ "VERSION=${version}" ]; 30 31 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 32 mkdir -p $out/Applications 33 mv $out/bin/glogg.app $out/Applications/glogg.app 34 rm -fr $out/{bin,share} 35 ''; 36 37 meta = with lib; { 38 description = "Fast, smart log explorer"; 39 mainProgram = "glogg"; 40 longDescription = '' 41 A multi-platform GUI application to browse and search through long or complex log files. It is designed with programmers and system administrators in mind. glogg can be seen as a graphical, interactive combination of grep and less. 42 ''; 43 homepage = "https://glogg.bonnefon.org/"; 44 license = licenses.gpl3Plus; 45 platforms = platforms.unix; 46 maintainers = with maintainers; [ c0bw3b ]; 47 }; 48}