Skip to content

Commit

Permalink
Nix: patch in search dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Apr 4, 2024
1 parent 752cc44 commit be7e9f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions nix/dirs.patch
Original file line number Diff line number Diff line change
@@ -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"};

//

0 comments on commit be7e9f9

Please sign in to comment.