push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,100 @@
{
lib,
stdenv,
fetchFromGitHub,
glibcLocales,
installShellFiles,
python3Packages,
sphinxHook,
}:
python3Packages.buildPythonApplication rec {
pname = "khal";
version = "0.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pimutils";
repo = "khal";
tag = "v${version}";
hash = "sha256-pbBdScyYQMdT2NjCk2dKPkR75Zcizzco2IkXpHkgPR8=";
};
build-system = with python3Packages; [
setuptools
setuptools-scm
];
nativeBuildInputs = [
glibcLocales
installShellFiles
sphinxHook
python3Packages.sphinx-rtd-theme
python3Packages.sphinxcontrib-newsfeed
];
dependencies = with python3Packages; [
click
click-log
configobj
freezegun
icalendar
lxml
pkginfo
vdirsyncer
python-dateutil
pytz
pyxdg
requests-toolbelt
tzlocal
urwid
];
nativeCheckInputs = with python3Packages; [
freezegun
hypothesis
packaging
pytestCheckHook
vdirsyncer
];
outputs = [
"out"
"doc"
"man"
];
sphinxBuilders = [
"html"
"man"
];
postInstall = ''
# shell completions
installShellCompletion --cmd khal \
--bash <(_KHAL_COMPLETE=bash_source $out/bin/khal) \
--zsh <(_KHAL_COMPLETE=zsh_source $out/bin/khal) \
--fish <(_KHAL_COMPLETE=fish_source $out/bin/khal)
# .desktop file
install -Dm755 misc/khal.desktop -t $out/share/applications
'';
doCheck = !stdenv.hostPlatform.isAarch64;
env.LC_ALL = "en_US.UTF-8";
disabledTests = [
# timing based
"test_etag"
"test_bogota"
"test_event_no_dst"
];
meta = {
description = "CLI calendar application";
homepage = "https://lostpackets.de/khal/";
changelog = "https://github.com/pimutils/khal/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ antonmosich ];
};
}

View File

@@ -0,0 +1,57 @@
{
lib,
python3,
fetchPypi,
khard,
testers,
}:
python3.pkgs.buildPythonApplication rec {
pname = "khard";
version = "0.20.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-F48yzPAcBQtc2ec2KCWD3ppkRf2Y4AOI33kiB2KbvdA=";
};
build-system = with python3.pkgs; [
setuptools
setuptools-scm
sphinxHook
sphinx-argparse
sphinx-autoapi
sphinx-autodoc-typehints
];
sphinxBuilders = [ "man" ];
dependencies = with python3.pkgs; [
configobj
ruamel-yaml
unidecode
vobject
];
postInstall = ''
install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
'';
preCheck = ''
# see https://github.com/scheibler/khard/issues/263
export COLUMNS=80
'';
pythonImportsCheck = [ "khard" ];
passthru.tests.version = testers.testVersion { package = khard; };
meta = {
homepage = "https://github.com/scheibler/khard";
description = "Console carddav client";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ matthiasbeyer ];
mainProgram = "khard";
};
}

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.nixos.khd</string>
<key>ProgramArguments</key>
<array>
<string>@out@/bin/khd</string>
</array>
<key>KeepAlive</key>
<true/>
<key>ProcessType</key>
<string>Interactive</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>@out@/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockServiceName</key>
<string>3021</string>
<key>SockType</key>
<string>dgram</string>
<key>SockFamily</key>
<string>IPv4</string>
</dict>
</dict>
</dict>
</plist>

View File

@@ -0,0 +1,48 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
}:
stdenv.mkDerivation rec {
pname = "khd";
version = "3.0.0";
src = fetchFromGitHub {
owner = "koekeishiya";
repo = "khd";
rev = "v${version}";
sha256 = "0nzfhknv1s71870w2dk9dy56a3g5zsbjphmfrz0vsvi438g099r4";
};
patches = [
# Fixes build issues, remove with >3.0.0
(fetchpatch {
url = "https://github.com/koekeishiya/khd/commit/4765ae0b4c7d4ca56319dc92ff54393cd9e03fbc.patch";
sha256 = "0kvf5hxi5bf6pf125qib7wn7hys0ag66zzpp4srj1qa87lxyf7np";
})
];
buildPhase = ''
make install
'';
installPhase = ''
mkdir -p $out/bin
cp bin/khd $out/bin/khd
mkdir -p $out/Library/LaunchDaemons
cp ${./org.nixos.khd.plist} $out/Library/LaunchDaemons/org.nixos.khd.plist
substituteInPlace $out/Library/LaunchDaemons/org.nixos.khd.plist --subst-var out
'';
meta = with lib; {
description = "Simple modal hotkey daemon for OSX";
homepage = "https://github.com/koekeishiya/khd";
downloadPage = "https://github.com/koekeishiya/khd/releases";
platforms = platforms.darwin;
maintainers = with maintainers; [ lnl7 ];
license = licenses.mit;
};
}

View File

@@ -0,0 +1,32 @@
{
lib,
stdenvNoCC,
fetchurl,
}:
stdenvNoCC.mkDerivation rec {
pname = "khmeros";
version = "5.0";
src = fetchurl {
url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz";
hash = "sha256-gBcM9YHSuhbxvwfQTvywH/5kN921GOyvGtkROcmcBiw=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
cp *.ttf $out/share/fonts
runHook postInstall
'';
meta = with lib; {
description = "Unicode fonts for the Khmer language";
homepage = "http://www.khmeros.info/";
license = licenses.gpl2Plus;
maintainers = with lib.maintainers; [ serge ];
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,145 @@
{
lib,
fetchFromGitHub,
python3,
postgresql,
postgresqlTestHook,
}:
python3.pkgs.buildPythonApplication rec {
pname = "khoj";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "debanjum";
repo = "khoj";
tag = version;
hash = "sha256-lvOeYTrvW5MfhuJ3lj9n9TRlvpRwVP2vFeaEeJdqIec=";
};
env = {
DJANGO_SETTINGS_MODULE = "khoj.app.settings";
postgresqlEnableTCP = 1;
};
nativeBuildInputs = with python3.pkgs; [
hatch-vcs
hatchling
];
propagatedBuildInputs = with python3.pkgs; [
aiohttp
anyio
authlib
beautifulsoup4
dateparser
defusedxml
django
fastapi
google-auth
# gpt4all
gunicorn
httpx
itsdangerous
jinja2
langchain
lxml
openai
openai-whisper
pgvector
pillow
psycopg2
pydantic
pymupdf
python-multipart
pyyaml
# rapidocr-onnxruntime
requests
rich
schedule
sentence-transformers
stripe
tenacity
tiktoken
torch
transformers
tzdata
uvicorn
];
nativeCheckInputs =
with python3.pkgs;
[
freezegun
factory-boy
pytest-xdist
trio
psutil
pytest-django
pytestCheckHook
]
++ [
(postgresql.withPackages (p: with p; [ pgvector ]))
postgresqlTestHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [
"khoj"
];
disabledTests = [
# Tests require network access
"test_different_user_data_not_accessed"
"test_get_api_config_types"
"test_get_configured_types_via_api"
"test_image_metadata"
"test_image_search"
"test_image_search_by_filepath"
"test_image_search_query_truncated"
"test_index_update"
"test_index_update_with_no_auth_key"
"test_notes_search"
"test_notes_search_with_exclude_filter"
"test_notes_search_with_include_filter"
"test_parse_html_plaintext_file"
"test_regenerate_index_with_new_entry"
"test_regenerate_with_github_fails_without_pat"
"test_regenerate_with_invalid_content_type"
"test_regenerate_with_valid_content_type"
"test_search_for_user2_returns_empty"
"test_search_with_invalid_auth_key"
"test_search_with_invalid_content_type"
"test_search_with_no_auth_key"
"test_search_with_valid_content_type"
"test_text_index_same_if_content_unchanged"
"test_text_indexer_deletes_embedding_before_regenerate"
"test_text_search"
"test_text_search_setup_batch_processes"
"test_update_with_invalid_content_type"
"test_user_no_data_returns_empty"
# Tests require rapidocr-onnxruntime
"test_multi_page_pdf_to_jsonl"
"test_single_page_pdf_to_jsonl"
"test_ocr_page_pdf_to_jsonl"
];
disabledTestPaths = [
# Tests require network access
"tests/test_conversation_utils.py"
];
meta = {
description = "Natural Language Search Assistant for your Org-Mode and Markdown notes, Beancount transactions and Photos";
homepage = "https://github.com/debanjum/khoj";
changelog = "https://github.com/debanjum/khoj/releases/tag/${version}";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ dit7ya ];
broken = true; # last successful build 2024-01-10
};
}

View File

@@ -0,0 +1,36 @@
{
lib,
stdenv,
fetchFromGitHub,
opencl-headers,
cmake,
withTracing ? false,
}:
stdenv.mkDerivation rec {
pname = "opencl-icd-loader";
version = "2025.07.22";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-ICD-Loader";
rev = "v${version}";
hash = "sha256-jwviNwX7C7b9lqIS4oZ4YLEFBfBdmQfXHxW3FPPYxYs=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ opencl-headers ];
cmakeFlags = [
(lib.cmakeBool "OCL_ICD_ENABLE_TRACE" withTracing)
];
meta = with lib; {
description = "Official Khronos OpenCL ICD Loader";
mainProgram = "cllayerinfo";
homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
license = licenses.asl20;
maintainers = [ ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,60 @@
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
meson,
ninja,
vala,
pkg-config,
desktop-file-utils,
glib,
gtk4,
json-glib,
libadwaita,
libgee,
wrapGAppsHook4,
}:
stdenv.mkDerivation rec {
pname = "khronos";
version = "4.0.1";
src = fetchFromGitHub {
owner = "lainsce";
repo = "khronos";
rev = version;
sha256 = "sha256-2mO2ZMDxZ7sx2EVTN0tsAv8MisGxlK/1h61N+hOqyGI=";
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
vala
pkg-config
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
json-glib
libadwaita
libgee
];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Track each task's time in a simple inobtrusive way";
homepage = "https://github.com/lainsce/khronos";
maintainers = with maintainers; [ xiorcale ];
teams = [ teams.pantheon ];
platforms = platforms.linux;
license = licenses.gpl3Plus;
mainProgram = "io.github.lainsce.Khronos";
};
}