forked from mirrors/nixpkgs
lighthouse: 2016-01-26 -> 2016-07-20 (#17127)
This commit is contained in:
parent
2ce60ead60
commit
26008f28b8
|
@ -1,31 +0,0 @@
|
|||
# Description: Fix lighthouse Makefile
|
||||
Index: Makefile
|
||||
===================================================================
|
||||
--- ./Makefile 1970-01-01 02:00:01.000000000 +0200
|
||||
+++ ./Makefile 1970-01-01 02:00:01.000000000 +0200
|
||||
@@ -19,21 +19,10 @@
|
||||
endif
|
||||
|
||||
# Library specific
|
||||
-HAS_GDK := $(shell pkg-config --exists gdk-2.0 echo $?)
|
||||
-ifdef $(HAS_GDK)
|
||||
- CFLAGS+=`pkg-config --cflags gdk-2.0`
|
||||
- LDFLAGS+=`pkg-config --libs gdk-2.0`
|
||||
-else
|
||||
- CFLAGS+=-DNO_GDK
|
||||
-endif
|
||||
-HAS_PANGO := $(shell pkg-config --exists pango echo $?)
|
||||
-ifdef $(HAS_PANGO)
|
||||
- CFLAGS+=`pkg-config --cflags pango`
|
||||
- LDFLAGS+=`pkg-config --libs pango`
|
||||
-else
|
||||
- CFLAGS+=-DNO_PANGO
|
||||
-endif
|
||||
-
|
||||
+CFLAGS+=$(shell pkg-config --cflags gdk-2.0)
|
||||
+LDFLAGS+=$(shell pkg-config --libs gdk-2.0)
|
||||
+CFLAGS+=$(shell pkg-config --cflags pango)
|
||||
+LDFLAGS+=$(shell pkg-config --libs pango)
|
||||
|
||||
all: lighthouse
|
||||
|
|
@ -4,39 +4,24 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lighthouse-${date}";
|
||||
date = "2016-01-26";
|
||||
date = "2016-07-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "emgram769";
|
||||
repo = "lighthouse";
|
||||
rev = "bf11f111572475e855b0329202a14c9e128c7e57";
|
||||
sha256 = "1ppika61vg4sc9mczbkjqy2mhgxqg57xrnsmmq0h2lyvj0yhg3qn";
|
||||
rev = "d1813ef8e2aca9f6b3609b1e0c6d1d5ee683281a";
|
||||
sha256 = "0v6ylm49f1b44zwq1y1gqxp2csyqblplr24ajllc2q3r0sc9m1ys";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig libX11 libxcb cairo gtk pango python27 python3
|
||||
];
|
||||
|
||||
patches = [ ./Makefile.patch ];
|
||||
makeFlags = [ "PREFIX=\${out}" ];
|
||||
|
||||
lighthouseInstaller = ''
|
||||
#!${stdenv.shell}
|
||||
cp -r $out/share/lighthouse/.config/lighthouse \$HOME/.config
|
||||
chmod -R +w \$HOME/.config/lighthouse
|
||||
'';
|
||||
preFixup = "chmod +x $out/share/lighthouse/.config/lighthouse/google.py";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp lighthouse $out/bin
|
||||
chmod +x config/lighthouse/cmd*
|
||||
chmod +x config/lighthouse/google.py
|
||||
patchShebangs config/lighthouse/
|
||||
patchShebangs config/lighthouse/scripts/
|
||||
mkdir -p $out/share/lighthouse/.config
|
||||
cp -r config/lighthouse $out/share/lighthouse/.config
|
||||
echo "${lighthouseInstaller}" > $out/bin/lighthouse-install
|
||||
chmod +x $out/bin/lighthouse-install
|
||||
'';
|
||||
postFixup = "chmod -x $out/share/lighthouse/.config/lighthouse/google.py";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple flexible popup dialog to run on X";
|
||||
|
|
Loading…
Reference in a new issue