tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ananicy-cpp: support wrapped applications
diniamo
2 years ago
3565fd8b
957cbdc5
+17
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
an
ananicy-cpp
match-wrappers.patch
package.nix
+16
pkgs/by-name/an/ananicy-cpp/match-wrappers.patch
···
1
1
+
diff --git a/src/worker.cpp b/src/worker.cpp
2
2
+
index 0cf8955..b9dc70f 100644
3
3
+
--- a/src/worker.cpp
4
4
+
+++ b/src/worker.cpp
5
5
+
@@ -29,7 +29,10 @@ void Worker::work(const std::stop_token &stop_token) {
6
6
+
while (!stop_token.stop_requested()) {
7
7
+
while ((proc = process_queue->poll(500ms)).has_value()) {
8
8
+
const auto &p = proc.value();
9
9
+
- const auto &rule = rules->get_rule(p.name);
10
10
+
+ auto name = p.name;
11
11
+
+ if (name.starts_with('.') && name.ends_with("-wrapped"))
12
12
+
+ name = name.substr(1, name.find_last_of('-') - 1);
13
13
+
+ const auto &rule = rules->get_rule(name);
14
14
+
15
15
+
processed_count++;
16
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
36
+
./match-wrappers.patch
36
37
];
37
38
38
39
strictDeps = true;