Nix: apply glaze patch
This commit is contained in:
parent
e92b20292b
commit
7d209b2941
2 changed files with 23 additions and 0 deletions
|
|
@ -105,6 +105,13 @@ in
|
||||||
]));
|
]));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Bump hyprpm's glaze dependency to 7.0.0, the version already present
|
||||||
|
# in Nixpkgs.
|
||||||
|
# TODO: apply patch globally when Arch repos get glaze 7.0.0.
|
||||||
|
./glaze.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Fix hardcoded paths to /usr installation
|
# Fix hardcoded paths to /usr installation
|
||||||
sed -i "s#/usr#$out#" src/render/OpenGL.cpp
|
sed -i "s#/usr#$out#" src/render/OpenGL.cpp
|
||||||
|
|
|
||||||
16
nix/glaze.patch
Normal file
16
nix/glaze.patch
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
diff --git a/hyprpm/CMakeLists.txt b/hyprpm/CMakeLists.txt
|
||||||
|
index ee738104..377872dc 100644
|
||||||
|
--- a/hyprpm/CMakeLists.txt
|
||||||
|
+++ b/hyprpm/CMakeLists.txt
|
||||||
|
@@ -11,9 +11,9 @@ set(CMAKE_CXX_STANDARD 23)
|
||||||
|
|
||||||
|
pkg_check_modules(hyprpm_deps REQUIRED IMPORTED_TARGET tomlplusplus hyprutils>=0.7.0)
|
||||||
|
|
||||||
|
-find_package(glaze 6.0.0 QUIET)
|
||||||
|
+find_package(glaze 7.0.0 QUIET)
|
||||||
|
if (NOT glaze_FOUND)
|
||||||
|
- set(GLAZE_VERSION v6.1.0)
|
||||||
|
+ set(GLAZE_VERSION v7.0.0)
|
||||||
|
message(STATUS "glaze dependency not found, retrieving ${GLAZE_VERSION} with FetchContent")
|
||||||
|
include(FetchContent)
|
||||||
|
FetchContent_Declare(
|
||||||
Loading…
Add table
Add a link
Reference in a new issue