lol
1{ lib, stdenv, fetchFromGitHub, pkg-config
2, libX11, libxcb, cairo, gtk2, pango, python27, python3
3}:
4
5stdenv.mkDerivation rec {
6 name = "lighthouse-${date}";
7 date = "2016-07-20";
8
9 src = fetchFromGitHub {
10 owner = "emgram769";
11 repo = "lighthouse";
12 rev = "d1813ef8e2aca9f6b3609b1e0c6d1d5ee683281a";
13 sha256 = "0v6ylm49f1b44zwq1y1gqxp2csyqblplr24ajllc2q3r0sc9m1ys";
14 };
15
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [
18 libX11 libxcb cairo gtk2 pango python27 python3
19 ];
20
21 makeFlags = [ "PREFIX=\${out}" ];
22
23 preFixup = "chmod +x $out/share/lighthouse/.config/lighthouse/google.py";
24
25 postFixup = "chmod -x $out/share/lighthouse/.config/lighthouse/google.py";
26
27 meta = with lib; {
28 description = "A simple flexible popup dialog to run on X";
29 homepage = "https://github.com/emgram769/lighthouse";
30 license = licenses.mit;
31 maintainers = with maintainers; [ ramkromberg ];
32 platforms = platforms.linux;
33 };
34
35}