modules/ryan-packages/freedesktop.scm

bbdc3d8697ff3025d655de5174e7b9f18926263a · 3.1 KB · 78 lines raw

1 (define-module (ryan-packages freedesktop)
2 #:use-module (guix download)
3 #:use-module ((guix licenses) #:prefix license:)
4 #:use-module (guix gexp)
5 #:use-module (guix build-system meson)
6 #:use-module (guix build-system qt)
7 #:use-module (guix packages)
8 #:use-module (guix git-download)
9 #:use-module (guix utils)
10 #:use-module (gnu packages)
11 #:use-module (gnu packages gl)
12 #:use-module (gnu packages linux)
13 #:use-module (gnu packages qt)
14 #:use-module (gnu packages cmake)
15 #:use-module (gnu packages pkg-config)
16 #:use-module (gnu packages freedesktop)
17 #:use-module (rosenthal packages wm)
18 #:use-module (gnu packages wm))
19
20 (define-public xdg-desktop-portal-wlr-new
21 (package
22 (inherit xdg-desktop-portal-wlr)
23 (version "0.7.0")
24 (source (origin
25 (method git-fetch)
26 (uri (git-reference
27 (url "https://github.com/emersion/xdg-desktop-portal-wlr")
28 (commit (string-append "v" version))))
29 (sha256
30 (base32
31 "1b3hpp3ybjgnnmnwsyb5bsnvz9q5nr3zz0j1alh02g24f68lf00k"))
32 (patches (search-patches "xdg-desktop-portal-wlr-harcoded-length.patch"))))
33 (native-inputs (modify-inputs (package-native-inputs xdg-desktop-portal-wlr)
34 (append wlroots)))))
35
36 (define-public xdg-desktop-portal-hyprland
37 (package
38 (name "xdg-desktop-portal-hyprland")
39 (version "0.4.0")
40 (source (origin
41 (method git-fetch)
42 (uri (git-reference
43 (url "https://github.com/hyprwm/xdg-desktop-portal-hyprland")
44 (commit (string-append "v" version))))
45 (file-name (git-file-name name version))
46 (sha256
47 (base32
48 "1dcglmx02j73qbmw9qsacamn8byakyzwknpqjnhsyphixb4crrdg"))))
49 (build-system meson-build-system)
50 (arguments
51 (list
52 #:configure-flags #~(list "-Dsystemd=disabled")))
53 (native-inputs (list cmake pkg-config wayland hyprland-protocols))
54 (inputs (list elogind hyprland hyprland-protocols pipewire wayland-protocols wayland libinih mesa `(,util-linux "lib")))
55 (home-page "")
56 (synopsis "test")
57 (description "test")
58 (license license:bsd-3)))
59
60 (define-public hyprland-share-picker
61 (package
62 (inherit xdg-desktop-portal-hyprland)
63 (name "hyprland-share-picker")
64 (build-system qt-build-system)
65 (inputs (modify-inputs (package-inputs xdg-desktop-portal-hyprland)
66 (append qtwayland-5)))
67 (native-inputs (modify-inputs (package-native-inputs xdg-desktop-portal-hyprland)
68 (append qtwayland-5)))
69 (arguments
70 (list
71 #:tests? #f
72 #:phases
73 #~(modify-phases %standard-phases
74 (add-after 'unpack 'chdir
75 (lambda _ (chdir "hyprland-share-picker"))))))
76 (synopsis "share picker")))
77
78 hyprland-share-picker