1{ lib
2, fetchFromGitHub
3, accountsservice
4, appstream-glib
5, dbus
6, desktop-file-utils
7, gettext
8, glib
9, gobject-introspection
10, gsettings-desktop-schemas
11, gtk-layer-shell
12, gtk3
13, json-glib
14, libgee
15, libhandy
16, libpulseaudio
17, libxml2
18, meson
19, ninja
20, pantheon
21, pkg-config
22, python3
23, stdenv
24, vala
25, wrapGAppsHook
26}:
27
28stdenv.mkDerivation rec {
29 pname = "swaysettings";
30 version = "0.4.0";
31
32 src = fetchFromGitHub {
33 owner = "ErikReider";
34 repo = "SwaySettings";
35 rev = "v${version}";
36 hash = "sha256-dn3n5DOAsw0FeXBkh19A2qB/5O+RyA2/Fj5PVtMOyL0=";
37 };
38
39 nativeBuildInputs = [
40 appstream-glib
41 desktop-file-utils
42 gettext
43 meson
44 ninja
45 pkg-config
46 python3
47 vala
48 wrapGAppsHook
49 ];
50
51 buildInputs = [
52 accountsservice
53 dbus
54 glib
55 gobject-introspection
56 gsettings-desktop-schemas
57 gtk-layer-shell
58 gtk3
59 json-glib
60 libgee
61 libhandy
62 libpulseaudio
63 libxml2
64 pantheon.granite
65 ];
66
67 postPatch = ''
68 patchShebangs /build/source/build-aux/meson/postinstall.py
69 '';
70
71 meta = with lib; {
72 description = "A GUI for configuring your sway desktop";
73 longDescription = ''
74 Sway settings enables easy configuration of a sway desktop environment
75 such as selection of application or icon themes.
76 '';
77 homepage = "https://github.com/ErikReider/SwaySettings";
78 license = licenses.gpl3Plus;
79 platforms = platforms.linux;
80 maintainers = [ maintainers.aacebedo ];
81 };
82}