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,3 @@
source "https://rubygems.org"
gem 'td'

View File

@@ -0,0 +1,44 @@
GEM
remote: https://rubygems.org/
specs:
fluent-logger (0.9.1)
msgpack (>= 1.0.0, < 2)
hirb (0.7.3)
httpclient (2.9.0)
mutex_m
msgpack (1.8.0)
mutex_m (0.3.0)
parallel (1.20.1)
rexml (3.4.1)
ruby-progressbar (1.13.0)
rubyzip (1.3.0)
td (0.17.1)
hirb (>= 0.4.5)
msgpack
parallel (~> 1.20.0)
rexml
ruby-progressbar (~> 1.7)
rubyzip (~> 1.3.0)
td-client (>= 1.0.8, < 2)
td-logger (>= 0.3.21, < 2)
yajl-ruby (>= 1.3.1, < 2.0)
zip-zip (~> 0.3)
td-client (1.0.8)
httpclient (>= 2.7)
msgpack (>= 0.5.6, < 2)
td-logger (0.3.28)
fluent-logger (>= 0.5.0, < 2.0)
msgpack (>= 0.5.6, < 2.0)
td-client (>= 0.8.66, < 2.0)
yajl-ruby (1.4.3)
zip-zip (0.3)
rubyzip (>= 1.0.0)
PLATFORMS
ruby
DEPENDENCIES
td
BUNDLED WITH
2.6.2

View File

@@ -0,0 +1,162 @@
{
fluent-logger = {
dependencies = [ "msgpack" ];
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "1qlc1gw0jnb86mc43cxhh0iflqwj5dds0v3k75g5my2h7wi4vzib";
type = "gem";
};
version = "0.9.1";
};
hirb = {
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "0mzch3c2lvmf8gskgzlx6j53d10j42ir6ik2dkrl27sblhy76cji";
type = "gem";
};
version = "0.7.3";
};
httpclient = {
dependencies = [ "mutex_m" ];
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "1j4qwj1nv66v3n9s4xqf64x2galvjm630bwa5xngicllwic5jr2b";
type = "gem";
};
version = "2.9.0";
};
msgpack = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "0cnpnbn2yivj9gxkh8mjklbgnpx6nf7b8j2hky01dl0040hy0k76";
type = "gem";
};
version = "1.8.0";
};
mutex_m = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "0l875dw0lk7b2ywa54l0wjcggs94vb7gs8khfw9li75n2sn09jyg";
type = "gem";
};
version = "0.3.0";
};
parallel = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "0055br0mibnqz0j8wvy20zry548dhkakws681bhj3ycb972awkzd";
type = "gem";
};
version = "1.20.1";
};
rexml = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "1jmbf6lf7pcyacpb939xjjpn1f84c3nw83dy3p1lwjx0l2ljfif7";
type = "gem";
};
version = "3.4.1";
};
ruby-progressbar = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "0cwvyb7j47m7wihpfaq7rc47zwwx9k4v7iqd9s1xch5nm53rrz40";
type = "gem";
};
version = "1.13.0";
};
rubyzip = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "1qxc2zxwwipm6kviiar4gfhcakpx1jdcs89v6lvzivn5hq1xk78l";
type = "gem";
};
version = "1.3.0";
};
td = {
dependencies = [
"hirb"
"msgpack"
"parallel"
"rexml"
"ruby-progressbar"
"rubyzip"
"td-client"
"td-logger"
"yajl-ruby"
"zip-zip"
];
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "1lg192z9yn0svqi57wqr5yh73b1my5jq6i1x548qd4mb5adgis72";
type = "gem";
};
version = "0.17.1";
};
td-client = {
dependencies = [
"httpclient"
"msgpack"
];
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "080dvxd66jaxprdlqcb24c5bk13shvvvk96glxf4ia5jnl5igz07";
type = "gem";
};
version = "1.0.8";
};
td-logger = {
dependencies = [
"fluent-logger"
"msgpack"
"td-client"
];
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "12mpw8qcghbvzvhmfwq6l0ny1h9n5w2p450mcimfgk2z32a3g43v";
type = "gem";
};
version = "0.3.28";
};
yajl-ruby = {
groups = [ "default" ];
platforms = [ ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "1lni4jbyrlph7sz8y49q84pb0sbj82lgwvnjnsiv01xf26f4v5wc";
type = "gem";
};
version = "1.4.3";
};
zip-zip = {
dependencies = [ "rubyzip" ];
source = {
remotes = [ "https://rubygems.org" ];
sha256 = "0ny3zv1sn9wasamykfkg7b7xgs6w7k5fy8kggiyjj9vrwfzzavqg";
type = "gem";
};
version = "0.3";
};
}

View File

@@ -0,0 +1,25 @@
{
lib,
bundlerApp,
bundlerUpdateScript,
}:
bundlerApp {
pname = "td";
gemdir = ./.;
exes = [ "td" ];
passthru.updateScript = bundlerUpdateScript "td";
meta = with lib; {
description = "CLI to manage data on Treasure Data, the Hadoop-based cloud data warehousing";
homepage = "https://github.com/treasure-data/td";
license = licenses.asl20;
maintainers = with maintainers; [
groodt
nicknovitski
];
platforms = platforms.unix;
mainProgram = "td";
};
}

View File

@@ -0,0 +1,14 @@
Checking uname sysname type: "FreeBSD"
Checking uname machine type: "amd64"
Checking uname release type: "14.0-RELEASE"
Checking uname version type: "FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC"
rpath library support: OK
-Wl,--version-script support: OK
Checking getconf LFS_CFLAGS: (64, "")
Checking for large file support without additional flags: OK
Checking correct behavior of strtoll: OK
Checking for working strptime: NO
Checking for C99 vsnprintf: "1"
Checking for HAVE_SHARED_MMAP: OK
Checking for HAVE_INCOHERENT_MMAP: NO
Checking for HAVE_SECURE_MKSTEMP: OK

View File

@@ -0,0 +1,108 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
wafHook,
buildPackages,
python3,
readline,
libxslt,
libxcrypt,
docbook-xsl-nons,
docbook_xml_dtd_45,
}:
let
needsAnswers =
stdenv.hostPlatform != stdenv.buildPlatform
&& !(stdenv.hostPlatform.emulatorAvailable buildPackages);
answers =
{
# PYTHONHASHSEED=1 python3.9 ./buildtools/bin/waf configure --bundled-libraries=NONE --builtin-libraries=replace --cross-compile --cross-execute=' ' --cross-answers=answers
x86_64-freebsd = ./answers-x86_64-freebsd;
}
.${stdenv.hostPlatform.system}
or (throw "Need pre-generated answers file to compile for ${stdenv.hostPlatform.system}");
in
stdenv.mkDerivation rec {
pname = "tdb";
version = "1.4.14";
src = fetchurl {
url = "mirror://samba/tdb/${pname}-${version}.tar.gz";
hash = "sha256-FE9AfULteg7BRwpA7xetQRM/6RC86GXdn+CE1JyQdSY=";
};
nativeBuildInputs = [
python3
pkg-config
wafHook
libxslt
docbook-xsl-nons
docbook_xml_dtd_45
];
buildInputs = [
python3
readline # required to build python
libxcrypt
];
# otherwise the configure script fails with
# PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!
preConfigure = ''
export PKGCONFIG="$PKG_CONFIG"
export PYTHONHASHSEED=1
''
+ lib.optionalString needsAnswers ''
cp ${answers} answers
chmod +w answers
'';
wafPath = "buildtools/bin/waf";
wafConfigureFlags = [
"--bundled-libraries=NONE"
"--builtin-libraries=replace"
]
++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"--cross-compile"
(
if (stdenv.hostPlatform.emulatorAvailable buildPackages) then
"--cross-execute=${stdenv.hostPlatform.emulator buildPackages}"
else
"--cross-answers=answers"
)
];
postFixup =
if stdenv.hostPlatform.isDarwin then
''install_name_tool -id $out/lib/libtdb.dylib $out/lib/libtdb.dylib''
else
null;
# python-config from build Python gives incorrect values when cross-compiling.
# If python-config is not found, the build falls back to using the sysconfig
# module, which works correctly in all cases.
PYTHON_CONFIG = "/invalid";
# https://reviews.llvm.org/D135402
NIX_LDFLAGS = lib.optional (
stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17"
) "--undefined-version";
meta = with lib; {
description = "Trivial database";
longDescription = ''
TDB is a Trivial Database. In concept, it is very much like GDBM,
and BSD's DB except that it allows multiple simultaneous writers
and uses locking internally to keep writers from trampling on each
other. TDB is also extremely small.
'';
homepage = "https://tdb.samba.org/";
license = licenses.lgpl3Plus;
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,47 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
cairo,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tdf";
version = "0.4.3";
src = fetchFromGitHub {
owner = "itsjunetime";
repo = "tdf";
fetchSubmodules = true;
tag = "v${finalAttrs.version}";
hash = "sha256-ZC7yQt2ssbRWP7EP7QBrLe8mN9Z9Va4eLivEP/78YpM=";
};
cargoHash = "sha256-8JGiKlVr41YbG+mI/S0xPByKa4pwAH4cDVlznRcfCxE=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
rustPlatform.bindgenHook
cairo
];
# Tests depend on cpuprofiler, which is not packaged in nixpkgs
doCheck = false;
# requires nightly features (feature(portable_simd))
RUSTC_BOOTSTRAP = true;
meta = {
description = "Tui-based PDF viewer";
homepage = "https://github.com/itsjunetime/tdf";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [
luftmensch-luftmensch
DieracDelta
];
mainProgram = "tdf";
platforms = lib.platforms.unix;
};
})

View File

@@ -0,0 +1,29 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule {
pname = "tdfgo";
version = "0-unstable-2022-08-25";
src = fetchFromGitHub {
owner = "digitallyserviced";
repo = "tdfgo";
rev = "9f0b3315eed32409639a05aca55d7a0252681193";
sha256 = "sha256-Lr4+bXdVxYbCXKVzE+fjeLD559HuABK6lOLJ0sBBGNY=";
};
vendorHash = "sha256-T6PSs5NfXSXvzlq67rIDbzURyA+25df3nMMfufo0fow=";
meta = with lib; {
description = "TheDraw font parser and console text renderer";
longDescription = "Supports more fonts than `tdfiglet`, and packs more features.";
homepage = "https://github.com/digitallyserviced/tdfgo";
license = licenses.cc0;
platforms = platforms.linux;
maintainers = with maintainers; [ crinklywrappr ];
mainProgram = "tdfgo";
};
}

View File

@@ -0,0 +1,38 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "tdl";
version = "0.19.0";
src = fetchFromGitHub {
owner = "iyear";
repo = "tdl";
rev = "v${version}";
hash = "sha256-EYS4EK0NmNHnvjMkf5AHrYpZeGw+n2ovFDLanbqpF4Y=";
};
vendorHash = "sha256-GpqgH23eK0h2BYxjN5TNUWEOT72smYdUoD1Iy6L2jL4=";
ldflags = [
"-s"
"-w"
"-X=github.com/iyear/tdl/pkg/consts.Version=${version}"
];
# Filter out the main executable
subPackages = [ "." ];
# Requires network access
doCheck = false;
meta = with lib; {
description = "Telegram downloader/tools written in Golang";
homepage = "https://github.com/iyear/tdl";
license = licenses.agpl3Only;
maintainers = with maintainers; [ Ligthiago ];
mainProgram = "tdl";
};
}

View File

@@ -0,0 +1,107 @@
{
fetchFromGitHub,
gperf,
openssl,
readline,
zlib,
cmake,
lib,
stdenv,
writeShellApplication,
common-updater-scripts,
jq,
buildPackages,
tde2eOnly ? false,
}:
let
updateScript = writeShellApplication {
name = "update-tdlib";
runtimeInputs = [
jq
common-updater-scripts
];
text = ''
commit_msg="^Update version to (?<v>\\\\d+.\\\\d+.\\\\d+)\\\\.$"
commit=$(curl -s "https://api.github.com/repos/tdlib/td/commits?path=CMakeLists.txt" | jq -c "map(select(.commit.message | test(\"''${commit_msg}\"))) | first")
rev=$(echo "$commit" | jq -r ".sha")
version=$(echo "$commit" | jq -r ".commit.message | capture(\"''${commit_msg}\") | .v")
update-source-version tdlib "$version" --rev="$rev"
'';
};
in
stdenv.mkDerivation {
pname = if tde2eOnly then "tde2e" else "tdlib";
version = "1.8.55";
src = fetchFromGitHub {
owner = "tdlib";
repo = "td";
# The tdlib authors do not set tags for minor versions, but
# external programs depending on tdlib constrain the minor
# version, hence we set a specific commit with a known version.
rev = "7d257dcda5dd2c616c1146540ef51147c5bb2c69";
hash = "sha256-oWA+geEUjl0fDqVuXxNL5gbgtXJTghaDWZlETheXZnA=";
};
buildInputs = [
openssl
readline
zlib
];
nativeBuildInputs = [
cmake
gperf
];
depsBuildBuild = [ buildPackages.stdenv.cc ];
preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
cmake -B native-build \
-DCMAKE_C_COMPILER=$CC_FOR_BUILD \
-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD \
-DCMAKE_AR=$(command -v $AR_FOR_BUILD) \
-DCMAKE_RANLIB=$(command -v $RANLIB_FOR_BUILD) \
-DCMAKE_STRIP=$(command -v $STRIP_FOR_BUILD) \
-DTD_GENERATE_SOURCE_FILES=ON .
cmake --build native-build -j $NIX_BUILD_CORES
'';
cmakeFlags = [
(lib.cmakeBool "TD_E2E_ONLY" tde2eOnly)
];
# https://github.com/tdlib/td/issues/1974
postPatch = ''
substituteInPlace CMake/GeneratePkgConfig.cmake \
--replace 'function(generate_pkgconfig' \
'include(GNUInstallDirs)
function(generate_pkgconfig' \
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
''
+ lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) ''
sed -i "/vptr/d" test/CMakeLists.txt
'';
passthru.updateScript = lib.getExe updateScript;
meta = with lib; {
description = "Cross-platform library for building Telegram clients";
homepage = "https://core.telegram.org/tdlib/";
license = [ licenses.boost ];
platforms = platforms.unix;
maintainers = [
maintainers.vyorkin
maintainers.vonfry
];
};
}

View File

@@ -0,0 +1,90 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
cmake,
curl,
gpgme,
libsolv,
libxml2,
pkg-config,
python3,
rpm,
sqlite,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tdnf";
version = "3.5.9";
src = fetchFromGitHub {
owner = "vmware";
repo = "tdnf";
rev = "v${finalAttrs.version}";
hash = "sha256-p9g+b7Fqq8V6QSaikEQMMHWqBf4UtRA9a/VtH+s5JUM=";
};
patches = [
# Support for rpm >= 4.19
(fetchpatch2 {
url = "https://patch-diff.githubusercontent.com/raw/vmware/tdnf/pull/410.patch";
hash = "sha256-p/ix5O1J/lj2fw7qJokT+wPN4ROoulnVqByfxgFvuEo=";
})
];
nativeBuildInputs = [
cmake
pkg-config
python3
];
buildInputs = [
curl.dev
gpgme.dev
libsolv
libxml2.dev
sqlite.dev
];
propagatedBuildInputs = [
rpm
];
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=$out"
"-DCMAKE_INSTALL_FULL_SYSCONDIR=$out/etc"
"-DCMAKE_INSTALL_SYSCONFDIR=$out/etc"
"-DSYSTEMD_DIR=$out/lib/systemd/system"
];
# error: format not a string literal and no format arguments [-Werror=format-security]
hardeningDisable = [ "format" ];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'SYSCONFDIR /etc' 'SYSCONFDIR $out/etc' \
--replace-fail '/etc/motdgen.d' '$out/etc/motdgen.d'
substituteInPlace client/tdnf.pc.in \
--replace-fail 'libdir=''${prefix}/@CMAKE_INSTALL_LIBDIR@' 'libdir=@CMAKE_INSTALL_FULL_LIBDIR@'
substituteInPlace tools/cli/lib/tdnf-cli-libs.pc.in \
--replace-fail 'libdir=''${prefix}/@CMAKE_INSTALL_LIBDIR@' 'libdir=@CMAKE_INSTALL_FULL_LIBDIR@'
'';
# remove binaries used for testing from the final output
postInstall = "rm $out/bin/*test";
meta = {
description = "Tiny Dandified Yum";
homepage = "https://github.com/vmware/tdnf";
changelog = "https://github.com/vmware/tdnf/releases/tag/v${finalAttrs.version}";
license = with lib.licenses; [
gpl2
lgpl21
];
maintainers = [ lib.maintainers.malt3 ];
mainProgram = "tdnf";
# rpm only supports linux
platforms = lib.platforms.linux;
};
})

View File

@@ -0,0 +1,27 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "tdns-cli";
version = "unstable-2021-02-19";
src = fetchFromGitHub {
owner = "rotty";
repo = "tdns-cli";
rev = "9a5455fe8a52f3f14dc55ef81511b479c8cd70ea";
hash = "sha256-BGxkqlKg81izq4eOBEZFJ/MPb3UCSOo8ZTYTjtjierk=";
};
cargoHash = "sha256-KDZGTGLHLuZgFtzIp+lL0VIiQcYspvxAivp7hVE9V/A=";
meta = with lib; {
description = "DNS tool that aims to replace dig and nsupdate";
homepage = "https://github.com/rotty/tdns-cli";
license = licenses.gpl3;
maintainers = with maintainers; [ astro ];
mainProgram = "tdns";
};
}

View File

@@ -0,0 +1,56 @@
{
stdenv,
lib,
fetchFromGitHub,
makeWrapper,
xwininfo,
xdotool,
xprop,
gawk,
coreutils,
gnugrep,
procps,
}:
stdenv.mkDerivation rec {
pname = "tdrop";
version = "0.5.0";
src = fetchFromGitHub {
owner = "noctuid";
repo = "tdrop";
rev = version;
sha256 = "sha256-fHvGXaZL7MMvTnkap341B79PDDo2lOVPPcOH4AX/zXo=";
};
dontBuild = true;
installFlags = [ "PREFIX=$(out)" ];
postInstall =
let
binPath = lib.makeBinPath [
xwininfo
xdotool
xprop
gawk
coreutils
gnugrep
procps
];
in
''
wrapProgram $out/bin/tdrop --prefix PATH : ${binPath}
'';
nativeBuildInputs = [ makeWrapper ];
meta = with lib; {
description = "Glorified WM-Independent Dropdown Creator";
mainProgram = "tdrop";
homepage = "https://github.com/noctuid/tdrop";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = [ ];
};
}