2023-05-18 19:51:25 +00:00
|
|
|
(define-module (ryan-packages freedesktop)
|
|
|
|
#:use-module (guix download)
|
2023-06-11 05:02:40 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
#:use-module (guix build-system meson)
|
2023-09-09 00:48:33 +00:00
|
|
|
#:use-module (guix build-system cmake)
|
|
|
|
#:use-module (guix build utils)
|
2023-05-18 19:51:25 +00:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (gnu packages)
|
2023-06-11 05:02:40 +00:00
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
#:use-module (gnu packages linux)
|
2023-08-08 04:03:07 +00:00
|
|
|
#:use-module (gnu packages image)
|
2023-06-11 05:02:40 +00:00
|
|
|
#:use-module (gnu packages qt)
|
2024-02-07 05:02:08 +00:00
|
|
|
#:use-module (gnu packages bash)
|
2023-06-11 05:02:40 +00:00
|
|
|
#:use-module (gnu packages cmake)
|
2023-10-03 18:31:17 +00:00
|
|
|
#:use-module (gnu packages gcc)
|
2023-06-11 05:02:40 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2023-05-18 19:51:25 +00:00
|
|
|
#:use-module (gnu packages freedesktop)
|
2023-09-09 00:48:33 +00:00
|
|
|
#:use-module (gnu packages xorg)
|
2023-10-03 18:31:17 +00:00
|
|
|
#:use-module (gnu packages glib)
|
2023-09-09 00:48:33 +00:00
|
|
|
#:use-module (gnu packages man)
|
2023-06-11 05:02:40 +00:00
|
|
|
#:use-module (rosenthal packages wm)
|
2023-05-18 19:51:25 +00:00
|
|
|
#:use-module (gnu packages wm))
|
|
|
|
|
|
|
|
(define-public xdg-desktop-portal-wlr-new
|
|
|
|
(package
|
|
|
|
(inherit xdg-desktop-portal-wlr)
|
|
|
|
(version "0.7.0")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/emersion/xdg-desktop-portal-wlr")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1b3hpp3ybjgnnmnwsyb5bsnvz9q5nr3zz0j1alh02g24f68lf00k"))
|
|
|
|
(patches (search-patches "xdg-desktop-portal-wlr-harcoded-length.patch"))))
|
|
|
|
(native-inputs (modify-inputs (package-native-inputs xdg-desktop-portal-wlr)
|
|
|
|
(append wlroots)))))
|
2023-06-11 05:02:40 +00:00
|
|
|
|
2023-10-12 05:01:17 +00:00
|
|
|
(define-public xdg-desktop-portal-hyprland-ryan
|
2023-06-11 05:02:40 +00:00
|
|
|
(package
|
|
|
|
(name "xdg-desktop-portal-hyprland")
|
2024-02-07 04:11:12 +00:00
|
|
|
(version "1.2.6")
|
2023-06-11 05:02:40 +00:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/hyprwm/xdg-desktop-portal-hyprland")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2024-02-07 05:02:08 +00:00
|
|
|
"0gjg4wy5jlv1mvaf49w6dwpqix6yhcipwdq5zvmm7z8jrrfzj6jm"))))
|
2023-06-11 05:02:40 +00:00
|
|
|
(build-system meson-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
2023-07-06 01:15:23 +00:00
|
|
|
#:tests? #f
|
|
|
|
#:configure-flags #~(list "-Dsystemd=disabled")
|
|
|
|
#:phases
|
2023-07-15 19:03:45 +00:00
|
|
|
;; After building the portal, we need to build the share selector using qt
|
2023-07-06 01:15:23 +00:00
|
|
|
#~(modify-phases %standard-phases
|
2024-02-07 04:11:12 +00:00
|
|
|
(add-after `unpack `fix-path
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* (find-files "." "\\.cp?*$")
|
|
|
|
(("/bin/sh") "sh")
|
|
|
|
(("\\<(sh|grim|hyprctl|slurp)\\>" _ cmd)
|
2024-02-07 05:16:05 +00:00
|
|
|
(search-input-file inputs (string-append "/bin/" cmd)))
|
2024-02-07 04:11:12 +00:00
|
|
|
(("\\<(hyprctl-share-picker)\\>" _ cmd)
|
|
|
|
(string-append #$output "/bin/" cmd))))))))
|
|
|
|
(native-inputs (list gcc-13 pkg-config wayland))
|
|
|
|
(inputs (list bash-minimal grim hyprland hyprland-protocols mesa pipewire qtbase-5 sdbus-c++ slurp wayland-protocols))
|
2023-06-11 05:02:40 +00:00
|
|
|
(home-page "")
|
|
|
|
(synopsis "test")
|
|
|
|
(description "test")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2023-09-09 00:48:33 +00:00
|
|
|
(define-public wl-mirror
|
|
|
|
(package
|
|
|
|
(name "wl-mirror")
|
2024-02-09 20:56:08 +00:00
|
|
|
(version "0.16.1")
|
2023-09-09 00:48:33 +00:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/Ferdi265/wl-mirror")
|
|
|
|
(commit (string-append "v" version))
|
|
|
|
(recursive? #t)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2024-02-09 20:56:08 +00:00
|
|
|
"06i4jrip4q9j1gp81j0jr79cwfj9zdcfcr1n0jpyqlxsysppidlc"))))
|
2023-09-09 00:48:33 +00:00
|
|
|
(inputs (list wayland egl-wayland mesa))
|
|
|
|
(native-inputs (list pkg-config scdoc wayland-protocols))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments (list
|
|
|
|
#:tests? #f
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'touch
|
|
|
|
(lambda _
|
|
|
|
(invoke "touch" "proto/wayland-protocols/.git")
|
|
|
|
(invoke "touch" "proto/wlr-protocols/.git"))))))
|
|
|
|
(home-page "bleh")
|
|
|
|
(synopsis "mirror displays")
|
|
|
|
(description "mirror displays")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2024-02-07 05:16:05 +00:00
|
|
|
wl-mirror
|