kupfer: init at 319 (#28719)

* kupfer: init at 319

* kupfer: wrap with wrapGAppsHook

* kupfer: fixing up runtime dependencies

* kupfer: added cobbal as maintainer
This commit is contained in:
Andrew Cobb 2017-09-02 09:11:10 -04:00 committed by Jörg Thalheim
parent c2e23a4948
commit 9dc256099f
3 changed files with 69 additions and 0 deletions

View file

@ -113,6 +113,7 @@
cleverca22 = "Michael Bishop <cleverca22@gmail.com>";
cmcdragonkai = "Roger Qiu <roger.qiu@matrix.ai>";
cmfwyp = "cmfwyp <cmfwyp@riseup.net>";
cobbal = "Andrew Cobb <andrew.cobb@gmail.com>";
coconnor = "Corey O'Connor <coreyoconnor@gmail.com>";
codsl = "codsl <codsl@riseup.net>";
codyopel = "Cody Opel <codyopel@gmail.com>";

View file

@ -0,0 +1,66 @@
{ stdenv
, makeWrapper
, fetchurl
, intltool
, python3Packages
, gtk3
, dbus
, libwnck3
, keybinder3
, hicolor_icon_theme
, wrapGAppsHook
}:
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";
};
nativeBuildInputs = [ wrapGAppsHook intltool ];
buildInputs = [ hicolor_icon_theme docutils libwnck3 keybinder3 ];
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
configurePhase = ''
runHook preConfigure
python ./waf configure --prefix=$prefix
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
python ./waf
runHook postBuild
'';
installPhase = let
pythonPath = (stdenv.lib.concatMapStringsSep ":"
(m: "${m}/lib/${python.libPrefix}/site-packages")
propagatedBuildInputs);
in ''
runHook preInstall
python ./waf install
gappsWrapperArgs+=(
"--prefix" "PYTHONPATH" : "${pythonPath}"
"--set" "PYTHONNOUSERSITE" "1"
)
runHook postInstall
'';
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;
};
}

View file

@ -15038,6 +15038,8 @@ with pkgs;
go = go_1_7;
};
kupfer = callPackage ../applications/misc/kupfer { };
lame = callPackage ../development/libraries/lame { };
larswm = callPackage ../applications/window-managers/larswm { };