2023-05-18 21:05:18 -04:00
|
|
|
(define-module (ryan-packages wm)
|
2024-02-15 13:22:50 -05:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2023-05-18 21:05:18 -04:00
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix packages)
|
2023-06-09 22:19:29 -04:00
|
|
|
#:use-module (guix gexp)
|
2023-05-18 21:05:18 -04:00
|
|
|
#:use-module (gnu packages)
|
2024-02-15 13:22:50 -05:00
|
|
|
#:use-module (guix build-system cmake)
|
2024-04-05 11:57:45 -04:00
|
|
|
#:use-module (guix build-system meson)
|
2023-10-03 16:02:21 -04:00
|
|
|
#:use-module (gnu packages python)
|
|
|
|
#:use-module (gnu packages audio)
|
|
|
|
#:use-module (gnu packages glib)
|
2024-02-15 13:22:50 -05:00
|
|
|
#:use-module (gnu packages freedesktop)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2023-10-11 23:45:39 -04:00
|
|
|
#:use-module (gnu packages gtk)
|
2024-04-05 11:57:45 -04:00
|
|
|
#:use-module (gnu packages xdisorg)
|
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages gl)
|
2024-07-04 17:47:18 -04:00
|
|
|
#:use-module (gnu packages image)
|
2023-10-03 16:02:21 -04:00
|
|
|
#:use-module (gnu packages llvm)
|
|
|
|
#:use-module (gnu packages gcc)
|
|
|
|
#:use-module (gnu packages check)
|
2023-05-18 21:05:18 -04:00
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (guix utils)
|
2024-03-06 09:18:53 -05:00
|
|
|
#:use-module (rosenthal packages wm)
|
2023-10-11 22:07:28 -04:00
|
|
|
#:use-module (ryan-packages gtk)
|
2024-07-28 23:22:11 -04:00
|
|
|
#:use-module (ryan-packages gl)
|
2023-05-18 21:05:18 -04:00
|
|
|
#:use-module (gnu packages wm))
|
|
|
|
|
|
|
|
(define-public swaylock-effects-new
|
|
|
|
(package
|
|
|
|
(inherit swaylock-effects)
|
2023-12-12 19:13:20 -05:00
|
|
|
(version "1.7.0.0")
|
2023-05-18 21:05:18 -04:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/jirutka/swaylock-effects")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-12-12 19:13:20 -05:00
|
|
|
"0cgpbzdpxj6bbpa8jwql1snghj21mhryyvj6sk46g66lqvwlrqbj"))))
|
2023-06-04 22:36:34 -04:00
|
|
|
(inputs (modify-inputs (package-inputs swaylock-effects) (delete "linux-pam")))))
|
2023-06-09 22:19:29 -04:00
|
|
|
|
2024-03-20 01:21:39 -04:00
|
|
|
(define-public swayidle-new
|
|
|
|
(package
|
|
|
|
(inherit swayidle)
|
|
|
|
(version "1.8.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/swaywm/swayidle")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name "swayidle" version))
|
|
|
|
(sha256
|
|
|
|
(base32 "0y0qdqzx90kvk6l80darldvizr7p5g65bnblhxlq5a2rgvs9hkpx"))))))
|
|
|
|
|
2023-06-09 22:19:29 -04:00
|
|
|
(define-public waybar-new
|
|
|
|
(package
|
|
|
|
(inherit waybar)
|
2023-10-03 16:02:21 -04:00
|
|
|
(name "waybar-new")
|
2024-06-03 18:27:33 -04:00
|
|
|
(version "0.10.3")
|
2023-10-03 16:02:21 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/Alexays/Waybar")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
2024-06-03 18:27:33 -04:00
|
|
|
(base32 "04xd61ycn1nisq1s5ch14zkbsjcfcy6n29nkjn68s2ribmws0iid"))))
|
2023-10-03 16:02:21 -04:00
|
|
|
(arguments
|
|
|
|
(list
|
2024-04-29 13:36:11 -04:00
|
|
|
#:configure-flags #~(list "--wrap-mode=nodownload" "-Dexperimental=true")))))
|
|
|
|
;(inputs (modify-inputs (package-inputs waybar) (delete "gtkmm") (prepend gtkmm-ryan))))) ;(prepend python cava catch2 gtkmm)))))
|
2023-10-11 23:45:39 -04:00
|
|
|
;(native-inputs (modify-inputs (package-native-inputs waybar) (prepend gcc-13)))))
|
2024-03-06 09:18:53 -05:00
|
|
|
|
2024-04-05 11:57:45 -04:00
|
|
|
(define cairo-hypr ;;; stolen from rosenthal since it is not exported
|
2024-03-06 09:18:53 -05:00
|
|
|
(package
|
2024-04-05 11:57:45 -04:00
|
|
|
(inherit cairo)
|
|
|
|
(name "cairo")
|
|
|
|
(version "1.18.0")
|
2024-03-06 09:18:53 -05:00
|
|
|
(source (origin
|
2024-04-05 11:57:45 -04:00
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://cairographics.org/releases/cairo-"
|
|
|
|
version ".tar.xz"))
|
2024-03-06 09:18:53 -05:00
|
|
|
(sha256
|
2024-04-05 11:57:45 -04:00
|
|
|
(base32
|
|
|
|
"0r0by563s75xyzz0d0j1nmjqmdrk2x9agk7r57p3v8vqp4v0ffi4"))))
|
|
|
|
(build-system meson-build-system)
|
|
|
|
(arguments
|
|
|
|
(list #:tests? #f
|
|
|
|
#:glib-or-gtk? #t
|
|
|
|
#:configure-flags
|
|
|
|
#~(list "-Dspectre=disabled")))
|
|
|
|
(outputs '("out"))))
|
|
|
|
|
|
|
|
(define-public hyprlock
|
2024-08-26 10:02:41 -04:00
|
|
|
(let ((commit "dba9d8b5175a6f23463035aafc6b0c741f9b73a5")
|
2024-07-02 20:45:48 -04:00
|
|
|
(revision "1"))
|
|
|
|
(package
|
|
|
|
(name "hyprlock")
|
2024-08-26 10:02:41 -04:00
|
|
|
(version (git-version "0.4.1" revision commit))
|
2024-07-02 20:45:48 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/hyprwm/hyprlock")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
2024-08-26 10:02:41 -04:00
|
|
|
(base32 "1zzv7w7hn8k71w75a9mz548cbl4f8zcsd8i92abgnrx5x9i35q63"))))
|
2024-07-02 20:45:48 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2024-07-29 00:17:12 -04:00
|
|
|
(list
|
|
|
|
#:tests? #f
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'install 'wrap-program
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(mesa (assoc-ref inputs "mesa")))
|
|
|
|
(wrap-program (string-append out "/bin/hyprlock")
|
|
|
|
`("__EGL_VENDOR_LIBRARY_DIRS" prefix ,(list (string-append mesa "/share/glvnd/egl_vendor.d"))))))))))
|
2024-07-02 20:45:48 -04:00
|
|
|
(native-inputs
|
|
|
|
(list gcc-13
|
|
|
|
pkg-config
|
|
|
|
mesa-headers
|
|
|
|
wayland))
|
|
|
|
(inputs
|
|
|
|
(list cairo
|
|
|
|
pango
|
|
|
|
libxkbcommon
|
|
|
|
hyprlang
|
2024-07-28 23:22:11 -04:00
|
|
|
mesa-libglvnd
|
2024-07-02 20:45:48 -04:00
|
|
|
libdrm
|
|
|
|
libglvnd
|
|
|
|
wayland-protocols
|
|
|
|
linux-pam))
|
|
|
|
(home-page "https://github.com/hyprwm/hyprlock")
|
|
|
|
(license license:bsd-3)
|
|
|
|
(synopsis "Screen locker for Hyprland")
|
|
|
|
(description "Screen locker for hyprland."))))
|
2024-04-05 11:57:45 -04:00
|
|
|
|