mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 02:14:13 -05:00
chore(projects/khora): add development shell
Assisted-by: openai-codex (gpt-5.6-luna) Assisted-by: pi (gpt-5.6-sol)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
use flake .#khora
|
||||
@@ -28,6 +28,13 @@ nix build .#khora
|
||||
nix run .#khora
|
||||
```
|
||||
|
||||
For a faster development loop, enter `projects/khora` and let direnv load its
|
||||
Khora development shell, then run the source tree directly:
|
||||
|
||||
```sh
|
||||
python -m khora
|
||||
```
|
||||
|
||||
Khora reads the same XDG configuration and vdirs as khal. It does not configure
|
||||
accounts or perform network synchronization.
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
python3Packages,
|
||||
khal,
|
||||
gobject-introspection,
|
||||
gsettings-desktop-schemas,
|
||||
gtk4,
|
||||
libadwaita,
|
||||
wrapGAppsHook4,
|
||||
@@ -16,8 +17,9 @@ python3Packages.buildPythonApplication {
|
||||
root = ./.;
|
||||
fileset = lib.fileset.unions [
|
||||
./data
|
||||
./README.md
|
||||
./pyproject.toml
|
||||
./src
|
||||
./khora
|
||||
./tests
|
||||
];
|
||||
};
|
||||
@@ -38,6 +40,10 @@ python3Packages.buildPythonApplication {
|
||||
];
|
||||
nativeCheckInputs = [python3Packages.pytestCheckHook];
|
||||
|
||||
shellHook = ''
|
||||
export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk4}/share/gsettings-schemas/${gtk4.name}:$XDG_DATA_DIRS"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 data/rs.m7.Khora.desktop \
|
||||
$out/share/applications/rs.m7.Khora.desktop
|
||||
|
||||
@@ -18,7 +18,7 @@ dependencies = [
|
||||
khora = "khora.application:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
include = ["khora*"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
||||
Reference in New Issue
Block a user