Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / kupfer / default.nix
blobfbb33c7e096feedf1448f6b0b774b4b6d8633188
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 , wrapGAppsHook
13 , wafHook
14 , bash
15 , dbus
18 with python3Packages;
20 buildPythonApplication rec {
21   pname = "kupfer";
22   version = "321";
24   format = "other";
26   src = fetchurl {
27     url = "https://github.com/kupferlauncher/kupfer/releases/download/v${version}/kupfer-v${version}.tar.bz2";
28     sha256 = "0nagjp63gxkvsgzrpjk78cbqx9a7rbnjivj1avzb2fkhrlxa90c7";
29   };
31   nativeBuildInputs = [
32     wrapGAppsHook 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 = "A smart, quick launcher";
55     homepage    = "https://kupferlauncher.github.io/";
56     license     = licenses.gpl3;
57     maintainers = with maintainers; [ cobbal ];
58     platforms   = platforms.linux;
59   };