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,97 @@
{
lib,
buildGoModule,
fetchFromGitHub,
pkg-config,
makeBinaryWrapper,
poppler-utils,
tesseract,
catdoc,
unrtf,
python3Packages,
nix-update-script,
writableTmpDirAsHomeHook,
}:
buildGoModule (finalAttrs: {
pname = "rlama";
version = "0.1.39";
src = fetchFromGitHub {
owner = "dontizi";
repo = "rlama";
tag = "v${finalAttrs.version}";
hash = "sha256-9qm9QSMko+ZHfKMMaTesA26X4OuemyB/w1w+0QOEpyE=";
};
vendorHash = "sha256-GHmLCgL79BdGw/5zz50Y1kR/6JYNalvOj2zjIHQ9IF0=";
env.CGO_ENABLED = "0";
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [
pkg-config
makeBinaryWrapper
];
# Run only unit tests for core packages; skip e2e tests that require Ollama
checkPhase = ''
runHook preCheck
go test -v ./internal/domain/... ./pkg/vector/... ./internal/repository/...
runHook postCheck
'';
postInstall = ''
wrapProgram $out/bin/rlama \
--prefix PATH : ${
lib.makeBinPath [
poppler-utils
tesseract
catdoc
unrtf
python3Packages.pdfminer-six
python3Packages.docx2txt
python3Packages.xlsx2csv
python3Packages.torch
python3Packages.transformers
]
}
'';
nativeInstallCheckInputs = [
writableTmpDirAsHomeHook
];
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
VERSION=$($out/bin/rlama --version | grep -o "${finalAttrs.version}" || true)
if [ -z "$VERSION" ]; then
echo "Version check failed: expected ${finalAttrs.version}, got: $($out/bin/rlama --version)"
else
echo "$VERSION"
fi
runHook postInstallCheck
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Retrieval-Augmented Language Model Adapter";
homepage = "https://github.com/dontizi/rlama";
changelog = "https://github.com/dontizi/rlama/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ liberodark ];
mainProgram = "rlama";
};
})

View File

@@ -0,0 +1,43 @@
{
lib,
fetchFromGitHub,
rustPlatform,
xorg,
}:
rustPlatform.buildRustPackage rec {
pname = "rlaunch";
version = "1.3.14";
src = fetchFromGitHub {
owner = "PonasKovas";
repo = "rlaunch";
rev = version;
hash = "sha256-PyCR/ob947W+6T56y1se74aNy1avJDb2ELyv2aGf1og=";
};
cargoHash = "sha256-5mj20MN0FUNa2xawocNhh2C1jX0yN2QNnKYvJi88b0M=";
# The x11_dl crate dlopen()s these libraries, so we have to inject them into rpath.
postFixup = ''
patchelf --set-rpath ${
lib.makeLibraryPath (
with xorg;
[
libX11
libXft
libXinerama
]
)
} $out/bin/rlaunch
'';
meta = with lib; {
description = "Lightweight application launcher for X11";
homepage = "https://github.com/PonasKovas/rlaunch";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ danc86 ];
mainProgram = "rlaunch";
};
}

View File

@@ -0,0 +1,28 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "rlci";
version = "1.1.2";
src = fetchFromGitHub {
owner = "orsinium-labs";
repo = "rlci";
rev = version;
hash = "sha256-+Hd1Ymm2LKnHUKoUlfN6D6pwebxgwJQHgqwMHXXtP6Y=";
};
cargoHash = "sha256-ckHwg7jEXZV0hjZFeR5dbqrt9APcyRV95LikwCFw/fM=";
meta = with lib; {
description = "Lambda calculus interpreter";
mainProgram = "rlci";
homepage = "https://github.com/orsinium-labs/rlci";
changelog = "https://github.com/orsinium-labs/rlci/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}

View File

@@ -0,0 +1,22 @@
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation rec {
pname = "rlog";
version = "1.4";
src = fetchurl {
url = "http://rlog.googlecode.com/files/rlog-${version}.tar.gz";
sha256 = "0y9zg0pd7vmnskwac1qdyzl282z7kb01nmn57lsg2mjdxgnywf59";
};
meta = {
homepage = "https://www.arg0.net/rlog";
description = "C++ logging library used in encfs";
platforms = lib.platforms.linux;
license = lib.licenses.lgpl3;
};
}

View File

@@ -0,0 +1,56 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
ninja,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "rlottie";
version = "0.2";
src = fetchFromGitHub {
owner = "Samsung";
repo = "rlottie";
rev = "v${version}";
sha256 = "10bxr1zf9wxl55d4cw2j02r6sgqln7mbxplhhfvhw0z92fi40kr3";
};
patches = [
# Fixed build with GCC 11
(fetchpatch {
url = "https://github.com/Samsung/rlottie/commit/2d7b1fa2b005bba3d4b45e8ebfa632060e8a157a.patch";
hash = "sha256-2JPsj0WiBMMu0N3NUYDrHumvPN2YS8nPq5Zwagx6UWE=";
})
];
nativeBuildInputs = [
cmake
ninja
pkg-config
];
cmakeFlags = [
(lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib")
];
env.NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
) "-U__ARM_NEON__";
meta = with lib; {
homepage = "https://github.com/Samsung/rlottie";
description = "Platform independent standalone c++ library for rendering vector based animations and art in realtime";
license = with licenses; [
mit
bsd3
mpl11
ftl
];
platforms = platforms.all;
maintainers = with maintainers; [ CRTified ];
};
}

View File

@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
perl,
readline,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rlwrap";
version = "0.46.2";
src = fetchFromGitHub {
owner = "hanslub42";
repo = "rlwrap";
tag = "v${finalAttrs.version}";
hash = "sha256-05q24Y097GCcipXEPTbel/YIAtQl4jDyA9JFjDDM41Y=";
};
nativeBuildInputs = [
autoreconfHook
perl
];
buildInputs = [ readline ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=implicit-function-declaration";
meta = with lib; {
description = "Readline wrapper for console programs";
homepage = "https://github.com/hanslub42/rlwrap";
changelog = "https://github.com/hanslub42/rlwrap/raw/refs/tags/v${finalAttrs.version}/NEWS";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ jlesquembre ];
mainProgram = "rlwrap";
};
})