diff options
Diffstat (limited to 'modules/freya/packages/wm.scm')
-rw-r--r-- | modules/freya/packages/wm.scm | 101 |
1 files changed, 61 insertions, 40 deletions
diff --git a/modules/freya/packages/wm.scm b/modules/freya/packages/wm.scm index 0d355e4..fc21aed 100644 --- a/modules/freya/packages/wm.scm +++ b/modules/freya/packages/wm.scm @@ -20,6 +20,7 @@ #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system meson) + #:use-module (guix build-system trivial) #:use-module (guix build utils) #:use-module (rosenthal packages wm) #:use-module (rosenthal packages freedesktop) @@ -201,47 +202,67 @@ (synopsis "i3 / sway like layout for hyprland.") (description "Hyprland plugin for an i3 / sway like manual tiling layout"))) +(define-syntax hyprland-plugin-impl + (syntax-rules () + ((_ plugin) + (let ((commit "fd133914bf1921db2a26627698f914478f6a9471") + (revision "1")) + (package + (name (string-append "hyprland-plugin-" plugin)) + (version (git-version "0.40.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hyprwm/hyprland-plugins.git") + (commit commit))) + (sha256 + (base32 + "0518ggbam7rllf9xfzhfn9fp364rbiycsrkag74jscy5br5cyl4g")) + (file-name (git-file-name name version)))) + (build-system meson-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ (chdir (string-append "../source/" plugin "/"))))))) + (native-inputs + (list pkg-config + gcc-13)) + (inputs + (list gcc-13 + pango + libinput + hyprland-protocols + hyprwayland-scanner + hyprland + hyprlang + wayland + wlroots-for-hyprland)) + (license license:bsd-3) + (home-page "https://github.com/hyprwm/hyprland-plugins") + (synopsis (string-append "official " plugin " plugin for hyprland")) + (description (string-append "official " plugin " plugin for hyprland"))))))) -(define-public hyprland-plugin-hyprbars - (let ((commit "fd133914bf1921db2a26627698f914478f6a9471") - (revision "1")) - (package - (name "hyprland-plugin-hyprbars") - (version (git-version "0.40.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/hyprwm/hyprland-plugins.git") - (commit commit))) - (sha256 - (base32 - "0518ggbam7rllf9xfzhfn9fp364rbiycsrkag74jscy5br5cyl4g")) - (file-name (git-file-name name version)))) - (build-system meson-build-system) - (arguments - `(#:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'chdir - (lambda _ (chdir "../source/hyprbars/")))))) - (native-inputs - (list pkg-config)) - (inputs - (list pango - gcc-13 - libinput - hyprland-protocols - hyprwayland-scanner - hyprlang - hyprland - wayland - wlroots-for-hyprland)) - (license license:bsd-3) - (home-page "https://github.com/hyprwm/hyprland-plugins") - (synopsis "adds simple title bars to windows") - (description "adds simple title bars to windows")))) - +(define-public hyprland-plugins + (package + (name "hyprland-plugins") + (version "0.40.0") + (source #f) + (build-system trivial-build-system) + (arguments '(#:builder (begin (mkdir %output) #t))) + (license license:bsd-3) + (home-page "https://github.com/hyprwm/hyprland-plugins") + (synopsis "A collection of all the official hyprland plugins") + (description "A metapackage containing inputs for each official plugin") + (propagated-inputs + (list (hyprland-plugin-impl "borders-plus-plus") + (hyprland-plugin-impl "csgo-vulkan-fix") + (hyprland-plugin-impl "hyprbars") + (hyprland-plugin-impl "hyprexpo") + (hyprland-plugin-impl "hyprtrails") + (hyprland-plugin-impl "hyprwinwrap"))))) (define-public hyprlock (let ((commit "d9a6229434fba475ea42b634ee2f03919236798d") |