2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-09-02 14:11:10 +01:00
|
|
|
, fetchurl
|
|
|
|
, intltool
|
|
|
|
, python3Packages
|
2018-12-02 11:41:15 +00:00
|
|
|
, gobject-introspection
|
2017-09-02 14:11:10 +01:00
|
|
|
, gtk3
|
2021-04-13 08:47:15 +01:00
|
|
|
, itstool
|
2021-06-23 19:22:04 +01:00
|
|
|
, libwnck
|
2017-09-02 14:11:10 +01:00
|
|
|
, keybinder3
|
2021-04-13 08:47:15 +01:00
|
|
|
, desktop-file-utils
|
|
|
|
, shared-mime-info
|
2017-09-02 14:11:10 +01:00
|
|
|
, wrapGAppsHook
|
2018-11-11 21:20:41 +00:00
|
|
|
, wafHook
|
2017-09-02 14:11:10 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-05-04 13:14:37 +01:00
|
|
|
pname = "kupfer";
|
2021-04-13 08:47:15 +01:00
|
|
|
version = "321";
|
2017-09-02 14:11:10 +01:00
|
|
|
|
2020-11-03 13:25:18 +00:00
|
|
|
format = "other";
|
|
|
|
|
2017-09-02 14:11:10 +01:00
|
|
|
src = fetchurl {
|
2021-04-13 08:47:15 +01:00
|
|
|
url = "https://github.com/kupferlauncher/kupfer/releases/download/v${version}/kupfer-v${version}.tar.bz2";
|
|
|
|
sha256 = "0nagjp63gxkvsgzrpjk78cbqx9a7rbnjivj1avzb2fkhrlxa90c7";
|
2017-09-02 14:11:10 +01:00
|
|
|
};
|
|
|
|
|
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
|
2021-04-13 08:47:15 +01:00
|
|
|
itstool # for help pages
|
|
|
|
desktop-file-utils # for update-desktop-database
|
|
|
|
shared-mime-info # for update-mime-info
|
2017-12-13 11:48:47 +00:00
|
|
|
];
|
2021-06-23 19:22:04 +01:00
|
|
|
buildInputs = [ docutils libwnck keybinder3 ];
|
2017-09-02 14:11:10 +01:00
|
|
|
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
|
|
|
|
|
2019-05-04 13:11:12 +01:00
|
|
|
# without strictDeps kupfer fails to build: Could not find the python module 'gi.repository.Gtk'
|
|
|
|
# see https://github.com/NixOS/nixpkgs/issues/56943 for details
|
|
|
|
strictDeps = false;
|
|
|
|
|
2020-11-03 13:25:18 +00:00
|
|
|
postInstall = ''
|
2017-09-02 14:11:10 +01:00
|
|
|
gappsWrapperArgs+=(
|
2020-11-03 13:25:18 +00:00
|
|
|
"--prefix" "PYTHONPATH" : "${makePythonPath propagatedBuildInputs}"
|
2017-09-02 14:11:10 +01:00
|
|
|
"--set" "PYTHONNOUSERSITE" "1"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-02 14:11:10 +01:00
|
|
|
description = "A smart, quick launcher";
|
|
|
|
homepage = "https://kupferlauncher.github.io/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ cobbal ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|