ananicy-cpp: support wrapped applications

diniamo 3565fd8b 957cbdc5

+17
+16
pkgs/by-name/an/ananicy-cpp/match-wrappers.patch
··· 1 + diff --git a/src/worker.cpp b/src/worker.cpp 2 + index 0cf8955..b9dc70f 100644 3 + --- a/src/worker.cpp 4 + +++ b/src/worker.cpp 5 + @@ -29,7 +29,10 @@ void Worker::work(const std::stop_token &stop_token) { 6 + while (!stop_token.stop_requested()) { 7 + while ((proc = process_queue->poll(500ms)).has_value()) { 8 + const auto &p = proc.value(); 9 + - const auto &rule = rules->get_rule(p.name); 10 + + auto name = p.name; 11 + + if (name.starts_with('.') && name.ends_with("-wrapped")) 12 + + name = name.substr(1, name.find_last_of('-') - 1); 13 + + const auto &rule = rules->get_rule(name); 14 + 15 + processed_count++; 16 +
+1
pkgs/by-name/an/ananicy-cpp/package.nix
··· 33 33 url = "https://gitlab.com/ananicy-cpp/ananicy-cpp/-/commit/6ea2dccceec39b6c4913f617dad81d859aa20f24.patch"; 34 34 hash = "sha256-C+7x/VpVwewXEPwibi7GxGfjuhDkhcjTyGbZHlYL2Bs="; 35 35 }) 36 + ./match-wrappers.patch 36 37 ]; 37 38 38 39 strictDeps = true;