nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / ku / kupfer / package.nix
blob2e2da1f9df12f4f4e401b9538d4bff0127ca6d8f
1 { lib
2 , fetchurl
3 , intltool
4 , python3Packages
5 , gobject-introspection
6 , gtk3
7 , itstool
8 , libwnck
9 , keybinder3
10 , desktop-file-utils
11 , shared-mime-info
12 , wrapGAppsHook3
13 , wafHook
14 , bash
15 , dbus
18 with python3Packages;
20 buildPythonApplication rec {
21   pname = "kupfer";
22   version = "327";
24   format = "other";
26   src = fetchurl {
27     url = "https://github.com/kupferlauncher/kupfer/releases/download/v${version}/kupfer-v${version}.tar.xz";
28     sha256 = "sha256-F5ScSfD/LwpSOAAqTN0WX5yFhoz23DYfeCC+KuvixYM=";
29   };
31   nativeBuildInputs = [
32     wrapGAppsHook3 intltool
33     # For setup hook
34     gobject-introspection wafHook
35     itstool            # for help pages
36     desktop-file-utils # for update-desktop-database
37     shared-mime-info   # for update-mime-info
38     docutils # for rst2man
39     dbus # for detection of dbus-send during build
40   ];
41   buildInputs = [ libwnck keybinder3 bash ];
42   propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
44   postInstall = ''
45     gappsWrapperArgs+=(
46       "--prefix" "PYTHONPATH" : "${makePythonPath propagatedBuildInputs}"
47       "--set" "PYTHONNOUSERSITE" "1"
48     )
49   '';
51   doCheck = false; # no tests
53   meta = with lib; {
54     description = "Smart, quick launcher";
55     homepage    = "https://kupferlauncher.github.io/";
56     license     = licenses.gpl3;
57     maintainers = with maintainers; [ cobbal ];
58     platforms   = platforms.linux;
59   };