commit 43fb2ee890bd68c10e0933a9fdb7e19a1603b201
parent 3b2db3cc8b130d4c3d99ffb9e3aa1c9ad9c93920
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Wed, 4 Nov 2026 15:25:47 +0400
Up
Diffstat:
5 files changed, 64 insertions(+), 19 deletions(-)
diff --git a/pkgs/by-name/c2/c2cwsgiutils/package.nix b/pkgs/by-name/c2/c2cwsgiutils/package.nix
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
python3Packages,
+ cee-syslog-handler,
}:
python3Packages.buildPythonPackage (finalAttrs: {
@@ -18,6 +19,8 @@ python3Packages.buildPythonPackage (finalAttrs: {
postPatch = ''
substituteInPlace pyproject.toml \
+ --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' \
+ --replace-fail "poetry-dynamic-versioning[plugin]" "poetry-dynamic-versioning" \
--replace-fail "\"poetry-plugin-tweak-dependencies-version\"," "" \
--replace-fail "\"poetry-plugin-drop-python-upper-constraint\"," ""
'';
@@ -27,14 +30,21 @@ python3Packages.buildPythonPackage (finalAttrs: {
poetry-dynamic-versioning
];
+ pythonRelaxDeps = true;
+
dependencies = with python3Packages; [
boltons
+ cee-syslog-handler
lxml
netifaces
+ pillow
psycopg2
pyramid
+ pyyaml
requests
- setuptools
+ ujson
+ urllib3
+ waitress
];
doCheck = false;
@@ -45,6 +55,5 @@ python3Packages.buildPythonPackage (finalAttrs: {
homepage = "https://github.com/camptocamp/c2cwsgiutils";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.sikmir ];
- broken = true;
};
})
diff --git a/pkgs/by-name/ce/cee-syslog-handler/package.nix b/pkgs/by-name/ce/cee-syslog-handler/package.nix
@@ -0,0 +1,32 @@
+{
+ lib,
+ python3Packages,
+}:
+
+python3Packages.buildPythonPackage (finalAttrs: {
+ pname = "cee-syslog-handler";
+ version = "0.6.0";
+ pyproject = true;
+
+ src = python3Packages.fetchPypi {
+ pname = "cee_syslog_handler";
+ inherit (finalAttrs) version;
+ hash = "sha256-ur62PXCi2N66c0//WtNyP+1tBToBYhoZk3+QAxWBPgs=";
+ };
+
+ build-system = with python3Packages; [
+ setuptools
+ setuptools-scm
+ ];
+
+ nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
+
+ pythonImportsCheck = [ "cee_syslog_handler" ];
+
+ meta = {
+ description = "Python Syslog Logging Handler with CEE Support";
+ homepage = "https://github.com/blue-yonder/cee_syslog_handler";
+ license = lib.licenses.bsd3;
+ maintainers = [ lib.maintainers.sikmir ];
+ };
+})
diff --git a/pkgs/by-name/si/simple-cc/package.nix b/pkgs/by-name/si/simple-cc/package.nix
@@ -20,6 +20,8 @@ stdenv.mkDerivation (finalAttrs: {
};
postPatch = ''
+ # empty stub prevents scripts/config from running
+ rm config.mk
substituteInPlace scripts/build/tool/gnu.mk \
--replace-fail "TOOL_LDFLAGS" "#TOOL_LDFLAGS"
substituteInPlace scripts/rules.mk \
@@ -68,6 +70,5 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = [ lib.maintainers.sikmir ];
platforms = lib.platforms.linux;
skip.ci = stdenv.hostPlatform.isDarwin;
- broken = true;
};
})
diff --git a/pkgs/by-name/st/stardict-tools/package.nix b/pkgs/by-name/st/stardict-tools/package.nix
@@ -4,16 +4,15 @@
fetchurl,
autoconf,
automake,
- gnome-common,
+ gettext,
libtool,
p7zip,
pkg-config,
- gtk2,
+ expat,
+ gtk3,
libmysqlclient,
libxml2,
pcre2,
- which,
- yelp-tools,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -30,16 +29,15 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
autoconf
automake
- gnome-common
+ gettext
libtool
p7zip
pkg-config
- which
- yelp-tools
];
buildInputs = [
- gtk2
+ expat
+ gtk3
libmysqlclient
libxml2
pcre2
@@ -48,11 +46,19 @@ stdenv.mkDerivation (finalAttrs: {
hardeningDisable = [ "format" ];
postPatch = ''
+ # dict is disabled, don't bootstrap it (requires intltool)
+ sed -i '/dict\/autogen.sh/d' autogen.sh
+ substituteInPlace tools/configure.ac \
+ --replace-fail "PKG_CHECK_MODULES(DSL2DICT, libpcre)" "PKG_CHECK_MODULES(DSL2DICT, libpcre2-8)"
substituteInPlace tools/src/Makefile.am \
--replace-fail "noinst_PROGRAMS =" "bin_PROGRAMS ="
'';
- preConfigure = "./autogen.sh";
+ preConfigure = ''
+ # AM_ICONV
+ export ACLOCAL_PATH="${gettext}/share/gettext/m4''${ACLOCAL_PATH:+:}''${ACLOCAL_PATH-}"
+ ./autogen.sh
+ '';
configureFlags = [ (lib.enableFeature false "dict") ];
env.NIX_CFLAGS_COMPILE = "-std=c++14";
@@ -71,6 +77,5 @@ stdenv.mkDerivation (finalAttrs: {
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.sikmir ];
platforms = lib.platforms.unix;
- broken = true; # configure.ac:91: error: possibly undefined macro: AM_ICONV
};
})
diff --git a/pkgs/by-name/ti/tilecloud/package.nix b/pkgs/by-name/ti/tilecloud/package.nix
@@ -2,7 +2,6 @@
lib,
fetchFromGitHub,
python3Packages,
- c2cwsgiutils,
}:
python3Packages.buildPythonApplication (finalAttrs: {
@@ -23,9 +22,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
postPatch = ''
substituteInPlace pyproject.toml \
- --replace-fail "\"poetry-plugin-tweak-dependencies-version\"," "" \
- --replace-fail "\"poetry-plugin-tweak-dependencies-version>=1.1.0\"," "" \
- --replace-fail "\"poetry-plugin-drop-python-upper-constraint\"" ""
+ --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"'
'';
build-system = with python3Packages; [
@@ -34,11 +31,11 @@ python3Packages.buildPythonApplication (finalAttrs: {
];
dependencies = with python3Packages; [
+ azure-core
azure-storage-blob
azure-identity
boto3
bottle
- c2cwsgiutils
cryptography
pillow
prometheus-client
@@ -54,6 +51,8 @@ python3Packages.buildPythonApplication (finalAttrs: {
site_packages=$out/lib/${python3Packages.python.libPrefix}/site-packages
cp -r static tiles $site_packages
substituteInPlace $out/bin/tc-viewer --subst-var site_packages
+ # bogus entry point, c2cciutils module isn't part of tilecloud
+ rm $out/bin/c2cciutils
'';
meta = {
@@ -61,6 +60,5 @@ python3Packages.buildPythonApplication (finalAttrs: {
homepage = "https://github.com/camptocamp/tilecloud";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.sikmir ];
- broken = true;
};
})