mirror of https://codeberg.org/hako/Rosenthal.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
229 lines
9.0 KiB
229 lines
9.0 KiB
;; SPDX-FileCopyrightText: 2022-2023 Hilton Chain <hako@ultrarare.space> |
|
;; |
|
;; SPDX-License-Identifier: GPL-3.0-or-later |
|
|
|
(define-module (rosenthal packages wm) |
|
#:use-module ((guix licenses) #:prefix license:) |
|
#:use-module (guix build-system gnu) |
|
#:use-module (guix build-system meson) |
|
#:use-module (guix download) |
|
#:use-module (guix gexp) |
|
#:use-module (guix git-download) |
|
#:use-module (guix packages) |
|
#:use-module (guix utils) |
|
#:use-module (gnu packages autotools) |
|
#:use-module (gnu packages gcc) |
|
#:use-module (gnu packages gnome) |
|
#:use-module (gnu packages gtk) |
|
#:use-module (gnu packages image) |
|
#:use-module (gnu packages man) |
|
#:use-module (gnu packages pciutils) |
|
#:use-module (gnu packages pkg-config) |
|
#:use-module (gnu packages python) |
|
#:use-module (gnu packages web) |
|
#:use-module (gnu packages wm) |
|
#:use-module (gnu packages xdisorg) |
|
#:use-module (gnu packages xorg) |
|
#:use-module (rosenthal packages freedesktop) |
|
#:use-module (rosenthal packages xdisorg)) |
|
|
|
(define hwdata-for-hyprland |
|
(package |
|
(inherit hwdata) |
|
(arguments |
|
(substitute-keyword-arguments (package-arguments hwdata) |
|
((#:phases _) #~%standard-phases))) |
|
(outputs '("out")))) |
|
|
|
(define libdisplay-info-for-hyprland |
|
(package |
|
(name "libdisplay-info") |
|
(version "0.1.1") |
|
(source (origin |
|
(method git-fetch) |
|
(uri (git-reference |
|
(url "https://gitlab.freedesktop.org/emersion/libdisplay-info") |
|
(commit version))) |
|
(file-name (git-file-name name version)) |
|
(sha256 |
|
(base32 |
|
"1ffq7w1ig1y44rrmkv1hvfjylzgq7f9nlnnsdgdv7pmcpfh45pgf")))) |
|
(build-system meson-build-system) |
|
(arguments '(#:tests? #f)) ;TODO |
|
(native-inputs (list hwdata-for-hyprland pkg-config python-minimal-wrapper)) |
|
(home-page "https://emersion.pages.freedesktop.org/libdisplay-info/") |
|
(synopsis "EDID and DisplayID library") |
|
(description "This package provides an EDID and DisplayID library.") |
|
(license license:expat))) |
|
|
|
(define udis86-for-hyprland |
|
(let ((revision "186") |
|
(commit "5336633af70f3917760a6d441ff02d93477b0c86")) |
|
(package |
|
(name "udis86") |
|
(version (git-version "1.7.2" revision commit)) |
|
(source (origin |
|
(method git-fetch) |
|
(uri (git-reference |
|
(url "https://github.com/canihavesomecoffee/udis86") |
|
(commit commit))) |
|
(file-name (git-file-name name version)) |
|
(sha256 |
|
(base32 |
|
"0y5z1169wff578jylpafsww4px4y6gickhcs885a9c660d8xs9qy")))) |
|
(build-system gnu-build-system) |
|
(native-inputs (list autoconf automake libtool python-minimal-wrapper)) |
|
(home-page "https://github.com/canihavesomecoffee/udis86") |
|
(synopsis "Disassembler Library for x86 and x86-64") |
|
(description |
|
"Udis86 is a disassembler for the x86 and x86-64 class of instruction |
|
set architectures. It consists of a C library called @code{libudis86} and a |
|
command line tool called @code{udcli} that incorporates the library.") |
|
(license license:bsd-2)))) |
|
|
|
(define wlroots-for-hyprland |
|
(let ((base wlroots) |
|
(revision "368") |
|
(commit "6830bfc17fd94709e2cdd4da0af989f102a26e59")) |
|
(package |
|
(inherit base) |
|
(name "wlroots") |
|
(version (git-version "0.16.0" revision commit)) |
|
(source (origin |
|
(method git-fetch) |
|
(uri (git-reference |
|
(url "https://gitlab.freedesktop.org/wlroots/wlroots.git") |
|
(commit commit))) |
|
(file-name (git-file-name name version)) |
|
(sha256 |
|
(base32 |
|
"13i83186hwpbghdflyqq1s762rqxzb75rj45c05vd6xx0f8j6q8q")))) |
|
(propagated-inputs |
|
(modify-inputs (package-propagated-inputs base) |
|
(append libdisplay-info-for-hyprland libxcb xcb-util-renderutil) |
|
(replace "pixman" pixman-0.42.2) |
|
(replace "wayland-protocols" wayland-protocols-1.31))) |
|
(native-inputs |
|
(modify-inputs (package-native-inputs base) |
|
(replace "hwdata" `(,hwdata-for-hyprland "out"))))))) |
|
|
|
(define-public hyprland-protocols |
|
(package |
|
(name "hyprland-protocols") |
|
(version "0.2") |
|
(source (origin |
|
(method git-fetch) |
|
(uri (git-reference |
|
(url "https://github.com/hyprwm/hyprland-protocols") |
|
(commit (string-append "v" version)))) |
|
(file-name (git-file-name name version)) |
|
(sha256 |
|
(base32 |
|
"1drjznj7fn6m5m6skhzh0p031cb5x0bb4i56jxnxwpwaa71g1z20")))) |
|
(build-system meson-build-system) |
|
(home-page "https://hyprland.org") |
|
(synopsis "Wayland protocol extensions for Hyprland") |
|
(description |
|
"This package provides Wayland protocol extensions for Hyprland and it |
|
exists in an effort to bridge the gap between Hyprland and KDE/Gnome's |
|
functionality. Since @code{wlr-protocols} is closed for new submissions, and |
|
@code{wayland-protocols} is very slow with changes, this package will hold |
|
protocols used by Hyprland to bridge the aforementioned gap.") |
|
(license license:bsd-3))) |
|
|
|
(define hyprland-unbundle-wlroots-patch |
|
(origin |
|
(method url-fetch) |
|
(uri (string-append "https://github.com/hyprwm/Hyprland" "/raw/" |
|
"72d2f33b34951b7f5be6cdbc302b1c6a33cbf60f" "/nix/" |
|
"meson-build.patch")) |
|
(file-name "hyprland-unbundle-wlroots.patch") |
|
(sha256 |
|
(base32 "1wj0kwvkkk2r7k18m9i2hdp9i9z7n330dib27jlbc8mjr96976y5")))) |
|
|
|
(define-public hyprland |
|
(let ((commit "0432804b180dbdf7aed64a5bf71b912a937e2e04") |
|
(revision "2")) |
|
(package |
|
(name "hyprland") |
|
(version (git-version "0.25.0" revision commit)) |
|
(source (origin |
|
(method git-fetch) |
|
(uri (git-reference |
|
(url "https://github.com/hyprwm/Hyprland") |
|
(commit commit))) |
|
(file-name (git-file-name name version)) |
|
(patches (list hyprland-unbundle-wlroots-patch)) |
|
(sha256 |
|
(base32 |
|
"1whxqn69yxzl04zbh0yccqwgjqrpzm7bxglpkfil889039g8vhjb")))) |
|
(build-system meson-build-system) |
|
(arguments |
|
(list #:build-type "release" |
|
#:phases |
|
#~(modify-phases %standard-phases |
|
(add-after 'unpack 'fix-default-wallpaper-path |
|
(lambda _ |
|
(substitute* "src/render/OpenGL.cpp" |
|
(("/usr") #$output)))) |
|
(add-after 'unpack 'substitute-meson-build |
|
(lambda _ |
|
(substitute* "meson.build" |
|
(("git") "true") |
|
(("@GIT_DIRTY@") "") |
|
(("@GIT_COMMIT_HASH@") #$commit))))))) |
|
(native-inputs (list gcc-12 jq pkg-config)) |
|
(inputs |
|
(list hyprland-protocols |
|
pango |
|
udis86-for-hyprland |
|
wlroots-for-hyprland)) |
|
(home-page "https://hyprland.org") |
|
(synopsis "Dynamic tiling Wayland compositor based on wlroots") |
|
(description |
|
"@code{Hyprland} is a dynamic tiling Wayland compositor based on |
|
@code{wlroots} that doesn't sacrifice on its looks. It supports multiple |
|
layouts, fancy effects, has a very flexible IPC model allowing for a lot of |
|
customization, and more.") |
|
(license license:bsd-3)))) |
|
|
|
;; No releases yet. |
|
(define-public grimblast |
|
(let ((revision "1") |
|
(commit "37c8121f98d76f57caa00dd7106877876e0d7483")) |
|
(package |
|
(name "grimblast") |
|
(version (git-version "0" revision commit)) |
|
(source (origin |
|
(method git-fetch) |
|
(uri (git-reference |
|
(url "https://github.com/hyprwm/contrib") |
|
(commit commit))) |
|
(file-name (git-file-name name version)) |
|
(sha256 |
|
(base32 |
|
"1jhjjblklqnz601ic58bl0x550d1rkyaqdmydhqzx3k2bc2mnjk7")))) |
|
(build-system gnu-build-system) |
|
(arguments |
|
(list #:tests? #f ;no tests |
|
#:make-flags |
|
#~(list (string-append "PREFIX=" #$output)) |
|
#:phases |
|
#~(modify-phases %standard-phases |
|
(delete 'configure) |
|
(add-after 'unpack 'chdir |
|
(lambda _ |
|
(chdir "grimblast"))) |
|
(add-after 'chdir 'patch-script-dependencies |
|
(lambda* (#:key inputs #:allow-other-keys) |
|
(substitute* "grimblast" |
|
(("\\b(date|grim|jq|notify-send|slurp|hyprctl|wl-copy)\\b" |
|
_ binary) |
|
(search-input-file |
|
inputs (string-append "bin/" binary))))))))) |
|
(native-inputs (list scdoc)) |
|
(inputs (list grim jq libnotify slurp hyprland wl-clipboard)) |
|
(home-page "https://github.com/hyprwm/contrib") |
|
(synopsis "Hyprland version of Grimshot") |
|
(description "A Hyprland version of Grimshot.") |
|
(license license:expat))))
|
|
|