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,63 @@
{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "offat";
version = "0.19.4";
pyproject = true;
src = fetchFromGitHub {
owner = "OWASP";
repo = "OFFAT";
tag = "v${version}";
hash = "sha256-XFYG8/QJfm9fx88xHBXe3hK6rTj1lVQze/X9joxKZuc=";
};
sourceRoot = "${src.name}/src";
pythonRelaxDeps = [
"rich"
"setuptools"
"tenacity"
];
build-system = with python3.pkgs; [ poetry-core ];
dependencies = with python3.pkgs; [
aiohttp
aiolimiter
fastapi
openapi-spec-validator
requests
rich
setuptools
tenacity
];
optional-dependencies = {
api = with python3.pkgs; [
fastapi
uvicorn
redis
rq
python-dotenv
];
};
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "offat" ];
meta = {
description = "Tool to test APIs for prevalent vulnerabilities";
homepage = "https://github.com/OWASP/OFFAT/";
changelog = "https://github.com/OWASP/OFFAT/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "offat";
};
}

View File

@@ -0,0 +1,57 @@
{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "offensive-azure";
# nixpkgs-update: no auto update
version = "0.4.10";
format = "pyproject";
src = fetchFromGitHub {
owner = "blacklanternsecurity";
repo = "offensive-azure";
rev = "v${version}";
hash = "sha256-5JHix+/uGGhXM89VLimI81g4evci5ZUtNV1c1xopjuI=";
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
certifi
charset-normalizer
colorama
dnspython
idna
pycryptodome
python-whois
requests
requests
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
# Use default Python module
substituteInPlace pyproject.toml \
--replace 'uuid = "^1.30"' "" \
--replace 'python-whois = "^0.7.3"' 'python-whois = "*"'
'';
pythonImportsCheck = [
"offensive_azure"
];
meta = with lib; {
description = "Collection of offensive tools targeting Microsoft Azure";
homepage = "https://github.com/blacklanternsecurity/offensive-azure";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,39 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation rec {
pname = "office-code-pro";
version = "1.004";
src = fetchFromGitHub {
owner = "nathco";
repo = "Office-Code-Pro";
rev = version;
hash = "sha256-qzKTXYswkithZUJT0a3IifCq4RJFeKciZAPhYr2U1X4=";
};
installPhase = ''
runHook preInstall
install -m644 -Dt $out/share/doc/${pname}-${version} README.md
install -m444 -Dt $out/share/fonts/opentype 'Fonts/Office Code Pro/OTF/'*.otf 'Fonts/Office Code Pro D/OTF/'*.otf
runHook postInstall
'';
meta = with lib; {
description = "Customized version of Source Code Pro";
longDescription = ''
Office Code Pro is a customized version of Source Code Pro, the monospaced
sans serif originally created by Paul D. Hunt for Adobe Systems
Incorporated. The customizations were made specifically for text editors
and coding environments, but are still very usable in other applications.
'';
homepage = "https://github.com/nathco/Office-Code-Pro";
license = licenses.ofl;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,97 @@
{
lib,
fetchFromGitHub,
python3,
asciidoc,
cacert,
docbook_xsl,
installShellFiles,
libxml2,
libxslt,
testers,
offlineimap,
fetchpatch,
}:
python3.pkgs.buildPythonApplication rec {
pname = "offlineimap";
version = "8.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "OfflineIMAP";
repo = "offlineimap3";
rev = "v${version}";
hash = "sha256-XLxKqO5OCXsFu8S3lMp2Ke5hp6uer9npZ3ujmL6Kb3g=";
};
patches = [
(fetchpatch {
name = "sqlite-version-aware-threadsafety-check.patch";
url = "https://github.com/OfflineIMAP/offlineimap3/pull/139/commits/7cd32cf834b34a3d4675b29bebcd32dc1e5ef128.patch";
hash = "sha256-xNq4jFHMf9XZaa9BFF1lOzZrEGa5BEU8Dr+gMOBkJE4=";
})
(fetchpatch {
# https://github.com/OfflineIMAP/offlineimap3/pull/120
name = "python312-comaptibility.patch";
url = "https://github.com/OfflineIMAP/offlineimap3/commit/a1951559299b297492b8454850fcfe6eb9822a38.patch";
hash = "sha256-CBGMHi+ZzOBJt3TxBf6elrTRMIQ+8wr3JgptL2etkoA=";
})
(fetchpatch {
# https://github.com/OfflineIMAP/offlineimap3/pull/161
name = "python312-compatibility.patch";
url = "https://github.com/OfflineIMAP/offlineimap3/commit/3dd8ebc931e3f3716a90072bd34e50ac1df629fa.patch";
hash = "sha256-2IJ0yzESt+zk+r+Z+9js3oKhFF0+xok0xK8Jd3G/gYY=";
})
];
postPatch = ''
# Skip xmllint to stop failures due to no network access
sed -i docs/Makefile -e "s|a2x -v -d |a2x -L -v -d |"
# Provide CA certificates (Used when "sslcacertfile = OS-DEFAULT" is configured")
sed -i offlineimap/utils/distro_utils.py -e '/def get_os_sslcertfile():/a\ \ \ \ return "${cacert}/etc/ssl/certs/ca-bundle.crt"'
'';
build-system = [ python3.pkgs.setuptools ];
nativeBuildInputs = [
asciidoc
docbook_xsl
installShellFiles
libxml2
libxslt
];
dependencies = with python3.pkgs; [
certifi
distro
imaplib2
pysocks
rfc6555
urllib3
];
postInstall = ''
make -C docs man
installManPage docs/offlineimap.1
installManPage docs/offlineimapui.7
'';
# Test requires credentials
doCheck = false;
pythonImportsCheck = [
"offlineimap"
];
passthru.tests.version = testers.testVersion { package = offlineimap; };
meta = {
description = "Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers";
homepage = "http://offlineimap.org";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ stephen-huan ];
mainProgram = "offlineimap";
};
}

View File

@@ -0,0 +1,63 @@
{
lib,
python3Packages,
fetchFromSourcehut,
file,
installShellFiles,
less,
offpunk,
testers,
timg,
xdg-utils,
xsel,
}:
python3Packages.buildPythonApplication rec {
pname = "offpunk";
version = "2.7.1";
pyproject = true;
disabled = python3Packages.pythonOlder "3.7";
src = fetchFromSourcehut {
owner = "~lioploum";
repo = "offpunk";
rev = "v${version}";
hash = "sha256-+Mbe1VLeF8Adf7bgVnbzvcWdPB4PXakCD9gO35jAYBY=";
};
build-system = with python3Packages; [ hatchling ];
nativeBuildInputs = [ installShellFiles ];
dependencies = [
file
less
timg
xdg-utils
xsel
]
++ (with python3Packages; [
beautifulsoup4
chardet
cryptography
feedparser
readability-lxml
requests
setproctitle
]);
postInstall = ''
installManPage man/*.1
'';
passthru.tests.version = testers.testVersion { package = offpunk; };
meta = {
description = "Command-line and offline-first smolnet browser/feed reader";
homepage = src.meta.homepage;
license = lib.licenses.agpl3Plus;
mainProgram = "offpunk";
maintainers = with lib.maintainers; [ DamienCassou ];
};
}

View File

@@ -0,0 +1,34 @@
{
lib,
stdenv,
fetchzip,
zlib,
}:
stdenv.mkDerivation {
pname = "offzip";
version = "0.4.1";
src = fetchzip {
url = "https://web.archive.org/web/20230419080810/https://aluigi.altervista.org/mytoolz/offzip.zip";
hash = "sha256-dmYeSdtNvx6FBuyCdiu+q1ExEfgN8fDO8coyJmFrjKY=";
stripRoot = false;
};
buildInputs = [
zlib
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "Tool to unpack the zip data contained in any type of file";
homepage = "https://aluigi.altervista.org/mytoolz.htm#offzip";
license = lib.licenses.gpl2Plus;
maintainers = with maintainers; [ r-burns ];
platforms = platforms.unix;
mainProgram = "offzip";
};
}

View File

@@ -0,0 +1,120 @@
From 0e0994c9716700c9484b3dccb25f98a9a59d1744 Mon Sep 17 00:00:00 2001
From: Jan Tojnar <jtojnar@gmail.com>
Date: Fri, 23 Aug 2019 18:42:51 +0200
Subject: [PATCH] Search connectors in OFONO_PLUGIN_PATH
Previously, the connectors would only be looked for in a single
directory, specified during compilation. This patch allows to
traverse a list of directories provided by an environment variable.
---
src/plugin.c | 77 ++++++++++++++++++++++++++++++++++------------------
1 file changed, 50 insertions(+), 27 deletions(-)
diff --git a/src/plugin.c b/src/plugin.c
index 924a45ec..f05055c3 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -99,35 +99,12 @@ static gboolean check_plugin(struct ofono_plugin_desc *desc,
return TRUE;
}
-#include "builtin.h"
-
-int __ofono_plugin_init(const char *pattern, const char *exclude)
-{
- gchar **patterns = NULL;
- gchar **excludes = NULL;
- GSList *list;
- GDir *dir;
+static void handle_dir(gchar *plugin_path, gchar **patterns, gchar **excludes) {
const gchar *file;
gchar *filename;
- unsigned int i;
-
- DBG("");
-
- if (pattern)
- patterns = g_strsplit_set(pattern, ":, ", -1);
-
- if (exclude)
- excludes = g_strsplit_set(exclude, ":, ", -1);
-
- for (i = 0; __ofono_builtin[i]; i++) {
- if (check_plugin(__ofono_builtin[i],
- patterns, excludes) == FALSE)
- continue;
-
- add_plugin(NULL, __ofono_builtin[i]);
- }
+ GDir *dir;
- dir = g_dir_open(PLUGINDIR, 0, NULL);
+ dir = g_dir_open(plugin_path, 0, NULL);
if (dir != NULL) {
while ((file = g_dir_read_name(dir)) != NULL) {
void *handle;
@@ -137,7 +114,7 @@ int __ofono_plugin_init(const char *pattern, const char *exclude)
g_str_has_suffix(file, ".so") == FALSE)
continue;
- filename = g_build_filename(PLUGINDIR, file, NULL);
+ filename = g_build_filename(plugin_path, file, NULL);
handle = dlopen(filename, RTLD_NOW);
if (handle == NULL) {
@@ -168,6 +145,52 @@ int __ofono_plugin_init(const char *pattern, const char *exclude)
g_dir_close(dir);
}
+}
+
+#include "builtin.h"
+
+int __ofono_plugin_init(const char *pattern, const char *exclude)
+{
+ gchar **patterns = NULL;
+ gchar **excludes = NULL;
+ GSList *list;
+ unsigned int i;
+
+ DBG("");
+
+ if (pattern)
+ patterns = g_strsplit_set(pattern, ":, ", -1);
+
+ if (exclude)
+ excludes = g_strsplit_set(exclude, ":, ", -1);
+
+ for (i = 0; __ofono_builtin[i]; i++) {
+ if (check_plugin(__ofono_builtin[i],
+ patterns, excludes) == FALSE)
+ continue;
+
+ add_plugin(NULL, __ofono_builtin[i]);
+ }
+
+
+ const gchar *plugin_path;
+
+ plugin_path = g_getenv ("OFONO_PLUGIN_PATH");
+
+ if (plugin_path) {
+ gchar **plugin_path_list;
+ gsize i;
+
+ plugin_path_list = g_strsplit (plugin_path, G_SEARCHPATH_SEPARATOR_S, 0);
+
+ for (i = 0; plugin_path_list[i]; i++) {
+ handle_dir(plugin_path_list[i], patterns, excludes);
+ }
+
+ g_strfreev(plugin_path_list);
+ }
+
+ handle_dir(PLUGINDIR, patterns, excludes);
for (list = plugins; list; list = list->next) {
struct ofono_plugin *plugin = list->data;
--
2.22.0

View File

@@ -0,0 +1,82 @@
{
lib,
stdenv,
fetchzip,
testers,
autoreconfHook,
pkg-config,
glib,
dbus,
ell,
systemd,
bluez,
mobile-broadband-provider-info,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ofono";
version = "2.17";
outputs = [
"out"
"dev"
];
src = fetchzip {
url = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/snapshot/ofono-${finalAttrs.version}.tar.gz";
hash = "sha256-VJhLJeC1pwXuAadKvYPel6Xb3RZG4vwDhhKefRVrt3Y=";
};
patches = [ ./0001-Search-connectors-in-OFONO_PLUGIN_PATH.patch ];
postPatch = ''
patchShebangs tools/provisiontool
'';
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
python3
];
buildInputs = [
glib
dbus
ell
systemd
bluez
mobile-broadband-provider-info
];
configureFlags = [
(lib.strings.withFeatureAs true "dbusconfdir" "${placeholder "out"}/share")
(lib.strings.withFeatureAs true "systemdunitdir" "${placeholder "out"}/lib/systemd/system")
(lib.strings.enableFeature true "external-ell")
"--sysconfdir=/etc"
];
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
enableParallelBuilding = true;
enableParallelChecking = false;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
description = "Infrastructure for building mobile telephony (GSM/UMTS) applications";
homepage = "https://git.kernel.org/pub/scm/network/ofono/ofono.git";
changelog = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/plain/ChangeLog?h=${finalAttrs.version}";
license = lib.licenses.gpl2Only;
maintainers = [ ];
platforms = lib.platforms.linux;
mainProgram = "ofonod";
pkgConfigModules = [
"ofono"
];
};
})