2017-09-02 13:11:10 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, intltool
|
|
|
|
, python3Packages
|
2018-12-02 11:41:15 +00:00
|
|
|
, gobject-introspection
|
2017-09-02 13:11:10 +00:00
|
|
|
, gtk3
|
|
|
|
, libwnck3
|
|
|
|
, keybinder3
|
2018-02-25 02:23:58 +00:00
|
|
|
, hicolor-icon-theme
|
2017-09-02 13:11:10 +00:00
|
|
|
, wrapGAppsHook
|
2018-11-11 21:20:41 +00:00
|
|
|
, wafHook
|
2017-09-02 13:11:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
name = "kupfer-${version}";
|
|
|
|
version = "319";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/kupferlauncher/kupfer/releases/download/v${version}/kupfer-v${version}.tar.xz";
|
|
|
|
sha256 = "0c9xjx13r8ckfr4az116bhxsd3pk78v04c3lz6lqhraak0rp4d92";
|
|
|
|
};
|
|
|
|
|
2017-12-13 11:48:47 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook intltool
|
|
|
|
# For setup hook
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection wafHook
|
2017-12-13 11:48:47 +00:00
|
|
|
];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ hicolor-icon-theme docutils libwnck3 keybinder3 ];
|
2017-09-02 13:11:10 +00:00
|
|
|
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
|
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
postInstall = let
|
2017-09-02 13:11:10 +00:00
|
|
|
pythonPath = (stdenv.lib.concatMapStringsSep ":"
|
|
|
|
(m: "${m}/lib/${python.libPrefix}/site-packages")
|
|
|
|
propagatedBuildInputs);
|
|
|
|
in ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
"--prefix" "PYTHONPATH" : "${pythonPath}"
|
|
|
|
"--set" "PYTHONNOUSERSITE" "1"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A smart, quick launcher";
|
|
|
|
homepage = "https://kupferlauncher.github.io/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ cobbal ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|