mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
Add a read-only GTK/libadwaita agenda backed by khal, with calendar filters, Nix packaging, desktop metadata, and model tests. Assisted-by: pi (gpt-5.6-sol)
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
khal,
|
|
gobject-introspection,
|
|
gtk4,
|
|
libadwaita,
|
|
wrapGAppsHook4,
|
|
}:
|
|
python3Packages.buildPythonApplication {
|
|
pname = "khora";
|
|
version = "0.1.0";
|
|
pyproject = true;
|
|
|
|
src = lib.fileset.toSource {
|
|
root = ./.;
|
|
fileset = lib.fileset.unions [
|
|
./data
|
|
./pyproject.toml
|
|
./src
|
|
./tests
|
|
];
|
|
};
|
|
|
|
build-system = [python3Packages.setuptools];
|
|
dependencies = [
|
|
khal
|
|
python3Packages.pygobject3
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook4
|
|
];
|
|
buildInputs = [
|
|
gtk4
|
|
libadwaita
|
|
];
|
|
nativeCheckInputs = [python3Packages.pytestCheckHook];
|
|
|
|
postInstall = ''
|
|
install -Dm644 data/rs.m7.Khora.desktop \
|
|
$out/share/applications/rs.m7.Khora.desktop
|
|
install -Dm644 data/rs.m7.Khora.svg \
|
|
$out/share/icons/hicolor/scalable/apps/rs.m7.Khora.svg
|
|
'';
|
|
|
|
meta = {
|
|
description = "Graphical calendar for local vdirs";
|
|
homepage = "https://github.com/misterio77/Foundry/tree/main/projects/khora";
|
|
license = lib.licenses.bsd2;
|
|
mainProgram = "khora";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|