modules/ryan-packages/freedesktop.scm

008ad48d367b4abf5af9c92dbea656b977d38cf7 · 4.7 KB · 111 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 build-system cmake)
8 #:use-module (guix build utils)
9 #:use-module (guix build glib-or-gtk-build-system)
10 #:use-module (guix packages)
11 #:use-module (guix git-download)
12 #:use-module (guix utils)
13 #:use-module (gnu packages)
14 #:use-module (gnu packages gl)
15 #:use-module (gnu packages linux)
16 #:use-module (gnu packages image)
17 #:use-module (gnu packages qt)
18 #:use-module (gnu packages bash)
19 #:use-module (gnu packages cmake)
20 #:use-module (gnu packages gcc)
21 #:use-module (gnu packages pkg-config)
22 #:use-module (gnu packages freedesktop)
23 #:use-module (gnu packages xorg)
24 #:use-module (gnu packages glib)
25 #:use-module (gnu packages man)
26 #:use-module (rosenthal packages wm)
27 #:use-module (gnu packages wm))
28
29 (define-public xdg-desktop-portal-wlr-new
30 (package
31 (inherit xdg-desktop-portal-wlr)
32 (version "0.7.0")
33 (source (origin
34 (method git-fetch)
35 (uri (git-reference
36 (url "https://github.com/emersion/xdg-desktop-portal-wlr")
37 (commit (string-append "v" version))))
38 (sha256
39 (base32
40 "1b3hpp3ybjgnnmnwsyb5bsnvz9q5nr3zz0j1alh02g24f68lf00k"))
41 (patches (search-patches "xdg-desktop-portal-wlr-harcoded-length.patch"))))
42 (native-inputs (modify-inputs (package-native-inputs xdg-desktop-portal-wlr)
43 (append wlroots)))))
44
45 (define-public xdg-desktop-portal-hyprland-ryan
46 (package
47 (name "xdg-desktop-portal-hyprland")
48 (version "1.2.6")
49 (source (origin
50 (method git-fetch)
51 (uri (git-reference
52 (url "https://github.com/hyprwm/xdg-desktop-portal-hyprland")
53 (commit (string-append "v" version))))
54 (file-name (git-file-name name version))
55 (sha256
56 (base32
57 "0gjg4wy5jlv1mvaf49w6dwpqix6yhcipwdq5zvmm7z8jrrfzj6jm"))))
58 (build-system meson-build-system)
59 (arguments
60 (list
61 #:tests? #f
62 #:configure-flags #~(list "-Dsystemd=disabled")
63 #:phases
64 ;; After building the portal, we need to build the share selector using qt
65 #~(modify-phases %standard-phases
66 (add-after `unpack `fix-path
67 (lambda* (#:key inputs #:allow-other-keys)
68 (substitute* (find-files "." "\\.cp?*$")
69 (("/bin/sh") "sh")
70 (("\\<(sh|grim|hyprctl|slurp)\\>" _ cmd)
71 (search-input-files inputs (string-append "/bin/" cmd)))
72 (("\\<(hyprctl-share-picker)\\>" _ cmd)
73 (string-append #$output "/bin/" cmd))))))))
74 (native-inputs (list gcc-13 pkg-config wayland))
75 (inputs (list bash-minimal grim hyprland hyprland-protocols mesa pipewire qtbase-5 sdbus-c++ slurp wayland-protocols))
76 (home-page "")
77 (synopsis "test")
78 (description "test")
79 (license license:bsd-3)))
80
81 (define-public wl-mirror
82 (package
83 (name "wl-mirror")
84 (version "0.13.2")
85 (source (origin
86 (method git-fetch)
87 (uri (git-reference
88 (url "https://github.com/Ferdi265/wl-mirror")
89 (commit (string-append "v" version))
90 (recursive? #t)))
91 (file-name (git-file-name name version))
92 (sha256
93 (base32
94 "0vkd73x5r2585s3w1ckvslc2mq9qbzrm5xkwg8gpy9ydaxhn8hmp"))))
95 (inputs (list wayland egl-wayland mesa))
96 (native-inputs (list pkg-config scdoc wayland-protocols))
97 (build-system cmake-build-system)
98 (arguments (list
99 #:tests? #f
100 #:phases
101 #~(modify-phases %standard-phases
102 (add-before 'configure 'touch
103 (lambda _
104 (invoke "touch" "proto/wayland-protocols/.git")
105 (invoke "touch" "proto/wlr-protocols/.git"))))))
106 (home-page "bleh")
107 (synopsis "mirror displays")
108 (description "mirror displays")
109 (license license:expat)))
110
111 xdg-desktop-portal-hyprland-ryan