mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-12-22 10:19:48 +01:00
Nix: patch in search dir
This commit is contained in:
parent
752cc44779
commit
be7e9f93cf
2 changed files with 18 additions and 0 deletions
|
@ -14,6 +14,11 @@ stdenv.mkDerivation {
|
|||
inherit version;
|
||||
src = ../.;
|
||||
|
||||
patches = [
|
||||
# adds /run/current-system/sw/share/icons to the icon lookup directories
|
||||
./dirs.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
|
|
13
nix/dirs.patch
Normal file
13
nix/dirs.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/libhyprcursor/hyprcursor.cpp b/libhyprcursor/hyprcursor.cpp
|
||||
index 304ab9f..1f7e95d 100644
|
||||
--- a/libhyprcursor/hyprcursor.cpp
|
||||
+++ b/libhyprcursor/hyprcursor.cpp
|
||||
@@ -14,7 +14,7 @@
|
||||
using namespace Hyprcursor;
|
||||
|
||||
// directories for lookup
|
||||
-constexpr const std::array<const char*, 1> systemThemeDirs = {"/usr/share/icons"};
|
||||
+constexpr const std::array<const char*, 2> systemThemeDirs = {"/usr/share/icons", "/run/current-system/sw/share/icons"};
|
||||
constexpr const std::array<const char*, 2> userThemeDirs = {"/.local/share/icons", "/.icons"};
|
||||
|
||||
//
|
Loading…
Reference in a new issue