Update flake

This commit is contained in:
Invariantspace 2024-09-28 13:42:39 -07:00
parent 246483e3d9
commit 19d0f83427
No known key found for this signature in database
GPG key ID: EBC4A20067373921
4 changed files with 29 additions and 30 deletions

View file

@ -46,7 +46,7 @@ pkgs.kdePackages.callPackage (
lib.makeSearchPath "lib/qt-6/qml" [
qtmultimedia
qtwebchannel
qtwebengine
qtwebengine.dev
qtwebsockets
]
}"

View file

@ -14,7 +14,7 @@ diff --git a/plugin/contents/pyext.py b/plugin/contents/pyext.py
old mode 100644
new mode 100755
diff --git a/plugin/contents/ui/Pyext.qml b/plugin/contents/ui/Pyext.qml
index 1a48f5e..8a9c9c9 100644
index 1a48f5e..7db2480 100644
--- a/plugin/contents/ui/Pyext.qml
+++ b/plugin/contents/ui/Pyext.qml
@@ -15,7 +15,8 @@ Item {
@ -22,16 +22,16 @@ index 1a48f5e..8a9c9c9 100644
"[ -f \"$HOME/.local/share/$EXT\" ] && WKD=\"$HOME/.local/share/$EXT\"",
"[ -f \"$XDG_DATA_HOME/$EXT\" ] && WKD=\"$XDG_DATA_HOME/$EXT\"",
- `exec python3 "$WKD" "${ws_server.url}"`
+ "[ -f \"NIX_STORE_PACKAGE_PATH/share/$EXT\" ] && WKD=\"NIX_STORE_PACKAGE_PATH/share/$EXT\"",
+ "[ -f \"NIX_STORE_PACKAGE_PATH/share/$EXT\" ] && WKD=\"NIX_STORE_PACKAGE_PATH/share/$EXT\"",
+ `"$WKD" "${ws_server.url}"`
].join("\n");
return sh;
}
diff --git a/src/plugin.cpp b/src/plugin.cpp
index 5e8a7e2..1709a27 100644
index 4bc817e..2fa88a3 100644
--- a/src/plugin.cpp
+++ b/src/plugin.cpp
@@ -13,6 +13,18 @@ class Port : public QQmlExtensionPlugin {
@@ -14,6 +14,18 @@ class Port : public QQmlExtensionPlugin {
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public: