glogg: enable on darwin
This commit is contained in:
parent
156ce0c302
commit
6da3a7a658
@ -1,21 +1,34 @@
|
|||||||
{ mkDerivation, stdenv, fetchurl, qmake, boost }:
|
{ mkDerivation, stdenv, fetchFromGitHub, qmake, boost }:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
|
|
||||||
pname = "glogg";
|
pname = "glogg";
|
||||||
version = "1.1.4";
|
version = "1.1.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://glogg.bonnefon.org/files/${pname}-${version}.tar.gz";
|
owner = "nickbnf";
|
||||||
sha256 = "0nwnfk9bcz2k7rf08w2cb6qipzdhwmxznik44jxmn9gwxdrdq78c";
|
repo = "glogg";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0hf1c2m8n88frmxmyn0ndr8129p7iky49nq565sw1asaydm5z6pb";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace glogg.pro \
|
||||||
|
--replace "boost_program_options-mt" "boost_program_options"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake ];
|
nativeBuildInputs = [ qmake ];
|
||||||
buildInputs = [ boost ];
|
buildInputs = [ boost ];
|
||||||
|
|
||||||
qmakeFlags = [ "glogg.pro" ];
|
qmakeFlags = [ "VERSION=${version}" ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
mkdir -p $out/Applications
|
||||||
|
mv $out/bin/glogg.app $out/Applications/glogg.app
|
||||||
|
rm -fr $out/{bin,share}
|
||||||
|
wrapQtApp $out/Applications/glogg.app/Contents/MacOS/glogg
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The fast, smart log explorer";
|
description = "The fast, smart log explorer";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -23,7 +36,7 @@ mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
homepage = "https://glogg.bonnefon.org/";
|
homepage = "https://glogg.bonnefon.org/";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ c0bw3b ];
|
maintainers = with maintainers; [ c0bw3b ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user