2016-10-23 11:45:30 +02:00
|
|
|
{ stdenv, fetchFromGitHub, intltool, file, pythonPackages, cairo }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
pythonPackages.buildPythonApplication {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "oblogout-unstable";
|
2016-10-23 11:45:30 +02:00
|
|
|
version = "2009-11-18";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nikdoof";
|
|
|
|
repo = "oblogout";
|
|
|
|
rev = "ee023158c03dee720a1af9b1307b14ed5a95f5a0";
|
|
|
|
sha256 = "0nj87q94idb5ki4wnb2xipfgc6k6clr3rmm4xxh46b58z4zhhbmj";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ intltool file pythonPackages.distutils_extra ];
|
|
|
|
|
|
|
|
buildInputs = [ cairo ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pythonPackages.pygtk pythonPackages.pillow pythonPackages.dbus-python ];
|
|
|
|
|
|
|
|
patches = [ ./oblogout-0.3-fixes.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace data/oblogout --replace sys.prefix \"$out/${pythonPackages.python.sitePackages}\"
|
|
|
|
substituteInPlace oblogout/__init__.py --replace sys.prefix \"$out\"
|
|
|
|
mkdir -p $out/share/doc
|
|
|
|
cp -a README $out/share/doc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Openbox logout script";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://launchpad.net/oblogout;
|
2016-10-23 11:45:30 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|