blob: 1fd3b3d8371fe024deb4062f12e42081fe820484 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ stdenv, fetchFromGitHub, pythonPackages
, gnome_python
, libappindicator-gtk2, xflux, librsvg, wrapGAppsHook
}:
pythonPackages.buildPythonApplication rec {
name = "xflux-gui-${version}";
version = "2016-09-21";
src = fetchFromGitHub {
repo = "xflux-gui";
owner = "xflux-gui";
rev = "0b56204477494b473a390e8b0db043437ec14f32";
sha256 = "15pr8f31jnhqjlpvasnj6cmm6hw5gljphh2pxzav3zd9bp4yl56r";
};
propagatedBuildInputs = with pythonPackages; [
pexpect
pyGtkGlade
pygobject2
pyxdg
libappindicator-gtk2
gnome_python
];
buildInputs = [ xflux librsvg ];
nativeBuildInputs = [ wrapGAppsHook ];
postPatch = ''
substituteInPlace src/fluxgui/xfluxcontroller.py --replace "pexpect.spawn(\"xflux\"" "pexpect.spawn(\"${xflux}/bin/xflux\""
'';
postFixup = ''
wrapGAppsHook
makeWrapperArgs="''${gappsWrapperArgs[@]}"
wrapPythonPrograms
patchPythonScript $out/${pythonPackages.python.sitePackages}/fluxgui/fluxapp.py
'';
meta = {
description = "Better lighting for Linux. Open source GUI for xflux";
homepage = https://justgetflux.com/linux.html;
license = stdenv.lib.licenses.unfree; # marked as unfree since the source code contains a copy of the unfree xflux binary
maintainers = [ stdenv.lib.maintainers.sheenobu ];
platforms = stdenv.lib.platforms.linux;
};
}
|