summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sakura/packages/wm.scm159
1 files changed, 0 insertions, 159 deletions
diff --git a/sakura/packages/wm.scm b/sakura/packages/wm.scm
index da3c694..d9421ab 100644
--- a/sakura/packages/wm.scm
+++ b/sakura/packages/wm.scm
@@ -80,162 +80,3 @@
(description "Keep Wayland clipboard even after programs close.")
(license license:expat)))
-
-(define-public vkroots
- (let ((commit "5106d8a0df95de66cc58dc1ea37e69c99afc9540"))
- (package
- (name "vkroots")
- (version (git-version "" "0" commit))
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/misyltoad/vkroots")
- (commit commit)))
- (sha256
- (base32
- "0hrp0xqq93552ipw2bmryixgm1aywnz49xagsx5rwzg2d0hwa0aa"))
- (file-name (git-file-name name version))))
- (arguments (list
- #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-vulkan
- (lambda _
- (substitute* "gen/make_vkroots"
- (("\\.\\.") (getcwd)))))
- (add-before 'install 'gen-vkroots
- (lambda _
- (invoke "python3"
- "../source/gen/make_vkroots"
- "-x"
- (string-append
- #$(this-package-native-input "vulkan-headers")
- "/share/vulkan/registry/vk.xml")))))))
- (build-system meson-build-system)
- (native-inputs (list python vulkan-headers))
- (home-page "https://github.com/misyltoad/vkroots")
- (description "A stupid simple method of making Vulkan layers, at home! ")
- (synopsis "A stupid simple method of making Vulkan layers, at home! ")
- (license license:expat))))
-
-
-(define reshade-for-gamescope
- (let ((commit "4245743a8c41abbe3dc73980c1810fe449359bf1"))
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/Joshua-Ashton/reshade")
- (commit commit)))
- (file-name (git-file-name "reshade" commit))
- (sha256
- (base32 "1bb5392dfiri8nrxvck1w2jxva8m9xzrgi16rvnvg96l493a538y")))))
-
-
-(define-public gamescope
- (package
- (name "gamescope")
- (version "3.16.1")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/ValveSoftware/gamescope")
- (commit version)))
- (patches (sakura-patches "gamescope-fix-fallbacks.patch"))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1gxrka9j6231nmvkmg6az1dh24swp91ylczpnfjx8l5f3nd20p41"))))
- (build-system meson-build-system)
- (arguments
- (list #:configure-flags #~(list "-Dpipewire=enabled"
- "-Denable_openvr_support=false"
- (string-append "-Dc_args=-DHWDATA_PNP_IDS=\""
- #$(this-package-native-input "hwdata")
- "/share/hwdata/pnp.ids\""))
- #:tests? #f
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-deps
- (lambda* (#:key inputs #:allow-other-keys)
- ; copy reshade
- (delete-file-recursively "src/reshade")
- (copy-recursively #$reshade-for-gamescope "src/reshade")
- ; path /usr
- (substitute* "src/reshade_effect_manager.cpp"
- (("/usr") #$output))
- ; path meson.build
- (substitute* "src/meson.build"
- ;; patch stb
- (("dependency\\('stb'\\)")
- (format #f "declare_dependency(include_directories: ['~a'])"
- (string-join
- '#$(map (lambda (label) (this-package-native-input label))
- (list "stb-image"
- "stb-image-resize"
- "stb-image-write"))
- "','")))
- ;; patch wlroots
- (("'wlroots',\n") "'wlroots-0.18',\n")
- ;; patch pixman
- (("dep_xi,") "dep_xi, dependency('pixman-1'),")
- ;; patch libdisplay-info
- (("< 0.2.0")
- (string-append "<= " #$(package-version (this-package-input "libdisplay-info"))))
- ;(("reshade/") (string-append #$reshade-for-gamescope "/"))
- (("../thirdparty/SPIRV-Headers") #$(this-package-native-input "spirv-headers")))
- ;; include <limits> and <cstdint>
- (substitute* (find-files "src" "\\.hpp$")
- (("#pragma once" pragma)
- (string-append pragma
- "\n#include <limits>"
- "\n#include <cstdint>")))
- ;; patch dlopen
- (substitute* (find-files "src" "\\.cpp$")
- (("dlopen\\( \"libvulkan.so")
- (string-append "dlopen(\""
- (search-input-file
- inputs "/lib/libvulkan.so"))))
- )))))
- (native-inputs (list gcc-14
- benchmark
- glslang
- hwdata
- pkg-config
- stb-image
- stb-image-resize
- stb-image-write
- spirv-headers
- vkroots
- vulkan-headers
- wayland-protocols
- git))
- (inputs (list gcc-14
- glm
- libavif
- libcap
- libdisplay-info
- libdrm
- libinput
- libliftoff
- libx11
- libxcomposite
- libxcursor
- libxdamage
- libxext
- libxkbcommon
- libxmu
- libxrender
- libxres
- libxt
- libxtst
- libdecor
- luajit
- pipewire
- sdl2
- vulkan-loader
- wayland
- wlroots
- pixman))
- (home-page "https://github.com/ValveSoftware/gamescope")
- (description "SteamOS session compositing window manager")
- (synopsis "SteamOS session compositing window manager")
- (license license:bsd-2)))