1{ lib
2, python3
3, fetchFromGitHub
4, meson
5, ninja
6, pkg-config
7, blueprint-compiler
8, wrapGAppsHook4
9, appstream-glib
10, desktop-file-utils
11, glib
12, gtk4
13, libadwaita
14, librsvg
15}:
16
17python3.pkgs.buildPythonApplication rec {
18 pname = "dynamic-wallpaper";
19 version = "0.1.0";
20 format = "other";
21
22 src = fetchFromGitHub {
23 owner = "dusansimic";
24 repo = pname;
25 rev = version;
26 hash = "sha256-DAdx34EYO8ysQzbWrAIPoghhibwFtoqCi8oyDVyO5lk=";
27 };
28
29 nativeBuildInputs = [
30 meson
31 ninja
32 pkg-config
33 blueprint-compiler
34 wrapGAppsHook4
35 appstream-glib
36 desktop-file-utils
37 ];
38
39 buildInputs = [
40 glib
41 gtk4
42 libadwaita
43 librsvg
44 ];
45
46 propagatedBuildInputs = with python3.pkgs; [
47 pygobject3
48 ];
49
50 # Prevent double wrapping
51 dontWrapGApps = true;
52
53 preFixup = ''
54 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
55 '';
56
57 meta = with lib; {
58 description = "Dynamic wallpaper maker for Gnome";
59 homepage = "https://github.com/dusansimic/dynamic-wallpaper";
60 license = licenses.gpl2;
61 platforms = platforms.linux;
62 mainProgram = "me.dusansimic.DynamicWallpaper";
63 maintainers = with maintainers; [ zendo ];
64 };
65}