From be7e9f93cfb789cb39465ae07202c7de1e524dd4 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Thu, 4 Apr 2024 08:48:42 +0300 Subject: [PATCH] Nix: patch in search dir --- nix/default.nix | 5 +++++ nix/dirs.patch | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 nix/dirs.patch diff --git a/nix/default.nix b/nix/default.nix index e989bd9..52ca6b0 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -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 diff --git a/nix/dirs.patch b/nix/dirs.patch new file mode 100644 index 0000000..adc690a --- /dev/null +++ b/nix/dirs.patch @@ -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 systemThemeDirs = {"/usr/share/icons"}; ++constexpr const std::array systemThemeDirs = {"/usr/share/icons", "/run/current-system/sw/share/icons"}; + constexpr const std::array userThemeDirs = {"/.local/share/icons", "/.icons"}; + + //