modules/ryan-packages/wm.scm
b88d77fb2d0d5028a6f5670695dee6bec129501f
· 6.0 KB · 163 lines
raw
| 1 | (define-module (ryan-packages wm) |
| 2 | #:use-module ((guix licenses) #:prefix license:) |
| 3 | #:use-module (guix download) |
| 4 | #:use-module (guix packages) |
| 5 | #:use-module (guix gexp) |
| 6 | #:use-module (gnu packages) |
| 7 | #:use-module (guix build-system cmake) |
| 8 | #:use-module (guix build-system meson) |
| 9 | #:use-module (gnu packages python) |
| 10 | #:use-module (gnu packages audio) |
| 11 | #:use-module (gnu packages glib) |
| 12 | #:use-module (gnu packages freedesktop) |
| 13 | #:use-module (gnu packages pkg-config) |
| 14 | #:use-module (gnu packages gtk) |
| 15 | #:use-module (gnu packages xdisorg) |
| 16 | #:use-module (gnu packages xorg) |
| 17 | #:use-module (gnu packages linux) |
| 18 | #:use-module (gnu packages gl) |
| 19 | #:use-module (gnu packages llvm) |
| 20 | #:use-module (gnu packages gcc) |
| 21 | #:use-module (gnu packages check) |
| 22 | #:use-module (guix git-download) |
| 23 | #:use-module (guix utils) |
| 24 | #:use-module (rosenthal packages wm) |
| 25 | #:use-module (ryan-packages gtk) |
| 26 | #:use-module (gnu packages wm)) |
| 27 | |
| 28 | (define-public swaylock-effects-new |
| 29 | (package |
| 30 | (inherit swaylock-effects) |
| 31 | (version "1.7.0.0") |
| 32 | (source (origin |
| 33 | (method git-fetch) |
| 34 | (uri (git-reference |
| 35 | (url "https://github.com/jirutka/swaylock-effects") |
| 36 | (commit (string-append "v" version)))) |
| 37 | (sha256 |
| 38 | (base32 |
| 39 | "0cgpbzdpxj6bbpa8jwql1snghj21mhryyvj6sk46g66lqvwlrqbj")))) |
| 40 | (inputs (modify-inputs (package-inputs swaylock-effects) (delete "linux-pam"))))) |
| 41 | |
| 42 | (define-public swayidle-new |
| 43 | (package |
| 44 | (inherit swayidle) |
| 45 | (version "1.8.0") |
| 46 | (source |
| 47 | (origin |
| 48 | (method git-fetch) |
| 49 | (uri (git-reference |
| 50 | (url "https://github.com/swaywm/swayidle") |
| 51 | (commit version))) |
| 52 | (file-name (git-file-name "swayidle" version)) |
| 53 | (sha256 |
| 54 | (base32 "0y0qdqzx90kvk6l80darldvizr7p5g65bnblhxlq5a2rgvs9hkpx")))))) |
| 55 | |
| 56 | (define-public waybar-new |
| 57 | (package |
| 58 | (inherit waybar) |
| 59 | (name "waybar-new") |
| 60 | (version "0.10.0") |
| 61 | (source |
| 62 | (origin |
| 63 | (method git-fetch) |
| 64 | (uri (git-reference |
| 65 | (url "https://github.com/Alexays/Waybar") |
| 66 | (commit version))) |
| 67 | (file-name (git-file-name name version)) |
| 68 | (sha256 |
| 69 | (base32 "00a8npilvcvicn9mff00i5rdzdll0zrmq0y8wgr314gnljn52md7")))) |
| 70 | (arguments |
| 71 | (list |
| 72 | #:configure-flags #~(list "--wrap-mode=nodownload" "-Dexperimental=true"))) |
| 73 | (inputs (modify-inputs (package-inputs waybar) (delete "gtkmm") (prepend gtkmm-ryan))))) ;(prepend python cava catch2 gtkmm))))) |
| 74 | ;(native-inputs (modify-inputs (package-native-inputs waybar) (prepend gcc-13))))) |
| 75 | |
| 76 | (define cairo-hypr ;;; stolen from rosenthal since it is not exported |
| 77 | (package |
| 78 | (inherit cairo) |
| 79 | (name "cairo") |
| 80 | (version "1.18.0") |
| 81 | (source (origin |
| 82 | (method url-fetch) |
| 83 | (uri (string-append "https://cairographics.org/releases/cairo-" |
| 84 | version ".tar.xz")) |
| 85 | (sha256 |
| 86 | (base32 |
| 87 | "0r0by563s75xyzz0d0j1nmjqmdrk2x9agk7r57p3v8vqp4v0ffi4")))) |
| 88 | (build-system meson-build-system) |
| 89 | (arguments |
| 90 | (list #:tests? #f |
| 91 | #:glib-or-gtk? #t |
| 92 | #:configure-flags |
| 93 | #~(list "-Dspectre=disabled"))) |
| 94 | (outputs '("out")))) |
| 95 | |
| 96 | |
| 97 | (define-public hyprlock |
| 98 | (package |
| 99 | (name "hyprlock") |
| 100 | (version "0.2.0") |
| 101 | (source |
| 102 | (origin |
| 103 | (method git-fetch) |
| 104 | (uri (git-reference |
| 105 | (url "https://github.com/hyprwm/hyprlock") |
| 106 | (commit (string-append "v" version)))) |
| 107 | (file-name (git-file-name name version)) |
| 108 | (sha256 |
| 109 | (base32 "0vj8jfflc8zw769dqdqq7ms3dfafsirb2c0g37xsqkc4rzzri7nn")))) |
| 110 | (build-system cmake-build-system) |
| 111 | (native-inputs |
| 112 | (list gcc-13 |
| 113 | pkg-config |
| 114 | mesa-headers |
| 115 | wayland)) |
| 116 | (inputs |
| 117 | (list cairo |
| 118 | pango |
| 119 | libxkbcommon |
| 120 | hyprlang |
| 121 | mesa |
| 122 | wayland-protocols |
| 123 | linux-pam)) |
| 124 | (home-page "https://github.com/hyprwm/hyprlock") |
| 125 | (license license:bsd-3) |
| 126 | (synopsis "Screen locker for Hyprland") |
| 127 | (description "Screen locker for hyprland."))) |
| 128 | |
| 129 | |
| 130 | ;(define hyprland-unbundle-wlroots-patch |
| 131 | ; (origin |
| 132 | ; (method url-fetch) |
| 133 | ; (uri (string-append "https://github.com/hyprwm/Hyprland" "/raw/" |
| 134 | ; "13f6f0b923ff3ec94a3bec886c28b90402ceef91" |
| 135 | ; "/nix/patches/meson-build.patch")) |
| 136 | ; (sha256 |
| 137 | ; (base32 "02sq5ymxxrxp93mccafc4ilpsvs4m8bxc3whp7bcc5v9dx41va8k")))) |
| 138 | |
| 139 | ;(define-public hyprland-temp |
| 140 | ; (package |
| 141 | ; (inherit hyprland) |
| 142 | ; (version "12985fa0d8e43b1e33326dfb49be681970dfaea5") |
| 143 | ; (source (origin |
| 144 | ; (method git-fetch) |
| 145 | ; (uri (git-reference |
| 146 | ; (url "https://github.com/hyprwm/Hyprland") |
| 147 | ; (commit version))) |
| 148 | ; (file-name (git-file-name "hyprland" version)) |
| 149 | ; (modules '((guix build utils))) |
| 150 | ; (snippet |
| 151 | ; '(begin |
| 152 | ; (substitute* "meson.build" |
| 153 | ; ((".*hyprpm/src.*") "")) |
| 154 | ; (for-each delete-file-recursively |
| 155 | ; '("hyprpm" |
| 156 | ; "subprojects")) |
| 157 | ; (copy-file "src/version.h.in" "src/version.h"))) |
| 158 | ; (sha256 |
| 159 | ; (base32 |
| 160 | ; "13l95h5krmv7syidw9c4gn62ac5qcqg9pmfh6x8ydjws97h05jvz")) |
| 161 | ; (patches (list hyprland-unbundle-wlroots-patch)))))) |
| 162 | |
| 163 | hyprlock |