diff options
Diffstat (limited to 'sigils/packages')
-rw-r--r-- | sigils/packages/hyprland.scm | 71 |
1 files changed, 70 insertions, 1 deletions
diff --git a/sigils/packages/hyprland.scm b/sigils/packages/hyprland.scm index 5c494a2..dc60356 100644 --- a/sigils/packages/hyprland.scm +++ b/sigils/packages/hyprland.scm @@ -16,6 +16,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages file) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) #:use-module (gnu packages gl) @@ -23,6 +24,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages image) + #:use-module (gnu packages linux) #:use-module (gnu packages pciutils) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -95,6 +97,36 @@ instruction set architectures.") (license license:bsd-2)))) +(define-public sdbus-c++-next + (package + (inherit sdbus-c++) + (name "sdbus-c++") + (version "2.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Kistler-Group/sdbus-cpp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1s6vhzln0rvac2r3v8nq08hsjhyz3y46fsy18i23ppjm30apkiav")))) + (arguments + (list + ;; Avoid the integration test, which requires a system bus. + #:test-target "sdbus-c++-unit-tests" + #:configure-flags #~(list "-DSDBUSCPP_BUILD_CODE_GEN=ON" + "-DSDBUSCPP_BUILD_TESTS=ON" + ;; Do not install tests. + "-DSDBUSCPP_TESTS_INSTALL_PATH=/tmp" + "-DCMAKE_VERBOSE_MAKEFILE=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'do-not-install-tests + (lambda _ + (substitute* "tests/CMakeLists.txt" + (("/etc/dbus-1/system.d") "/tmp"))))))))) + ;;; Hyprland (define hyprland-version "0.44.1") @@ -374,8 +406,45 @@ replacement for XCursor.") libwebp hyprlang hyprutils)) - (arguments '(#:tests? #f)) + (arguments '(#:tests? #f)) ;; No tests (synopsis "Wallpaper utility with IPC controls") (description "Hyprpaper is a wallpaper utility for Hyprland with the ability to dynamically change wallpapers through sockets") (license license:bsd-3))) + +(define-public hyprlock + (package + (name "hyprlock") + (version "0.5.0") + (home-page "https://hyprland.org/") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://code.hyprland.org/hyprwm/hyprlock") + (commit (string-append "v" version)))) + (sha256 + (base32 "07404h6w5934yimpwb0p9dxg1w3nv702bckm4m99jbjrda6jqhmi")))) + (build-system cmake-build-system) + (native-inputs (list gcc-13 ;; TODO: remove this when GCC 13 is the default + pkg-config)) + (inputs (list wayland-next + wayland-protocols-next + mesa + cairo + libdrm + pango + libxkbcommon + hyprlang + hyprutils + file + libglvnd + libjpeg-turbo + libwebp + sdbus-c++-next + linux-pam)) + (arguments '(#:tests? #f)) ;; No tests + (synopsis "GPU-accelerated screen locking utility") + (description "Hyprland's multi-threaded and GPU-accelerated screen locking +utility.") + (license license:bsd-3))) |