flakes: Migrate the config and miku to flakes
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "key-mapper";
|
||||
# TODO: Update to 1.2.1
|
||||
version = "1.0.0";
|
||||
version = "1.2.1";
|
||||
|
||||
buildInputs = [ gobject-introspection gtk3 gnome.adwaita-icon-theme ];
|
||||
|
||||
@@ -35,7 +34,7 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
# Fix keymapper not finding its data files
|
||||
preBuild = ''
|
||||
sed -e "s|NIXOS_OUT_PATH|$out/usr/share/key-mapper|" --in-place keymapper/data.py
|
||||
sed -e "s|@@NIXOS_OUT_PATH@@|$out/usr/share/key-mapper|" --in-place keymapper/data.py
|
||||
'';
|
||||
|
||||
# Required as we otherwise don't get the dbus policy installed
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
diff --git a/keymapper/data.py b/keymapper/data.py
|
||||
index d909399..7e4aad0 100644
|
||||
index 6f3e428..8eded95 100644
|
||||
--- a/keymapper/data.py
|
||||
+++ b/keymapper/data.py
|
||||
@@ -68,6 +68,7 @@ def get_data_path(filename=''):
|
||||
'/usr/share/key-mapper',
|
||||
'/usr/local/share/key-mapper',
|
||||
os.path.join(site.USER_BASE, 'share/key-mapper'),
|
||||
+ 'NIXOS_OUT_PATH',
|
||||
@@ -68,6 +68,7 @@ def get_data_path(filename=""):
|
||||
"/usr/share/key-mapper",
|
||||
"/usr/local/share/key-mapper",
|
||||
os.path.join(site.USER_BASE, "share/key-mapper"),
|
||||
+ "@@NIXOS_OUT_PATH@@",
|
||||
]
|
||||
|
||||
if data is None:
|
||||
|
||||
Reference in New Issue
Block a user