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,51 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
}:
stdenv.mkDerivation rec {
pname = "zsync";
version = "0.6.3-unstable-2025-05-29";
src = fetchFromGitHub {
owner = "cph6";
repo = "zsync";
rev = "a5cb28f923dd3cfdeb65e2930dd1faa727c2abf8";
hash = "sha256-gJs1P83AKWGipspeoFCSibZH+X6mmj3aL4+yjGO2YJo=";
};
sourceRoot = "${src.name}/c";
patches = [ ./remove-inexisting-rsumtest.patch ];
makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
# Suppress error "call to undeclared library function 'strcasecmp'" during compilation.
# The function is found by the linker correctly, so this doesn't introduce any issues.
# Also suppress errors that come from incompatible pointer types due to GCC 14 changes.
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isClang [
"-Wno-implicit-function-declaration"
]
++ lib.optionals stdenv.cc.isGNU [
"-Wno-error=incompatible-pointer-types"
]
);
nativeBuildInputs = [
autoreconfHook
];
meta = {
homepage = "https://github.com/cph6/zsync";
description = "File distribution system using the rsync algorithm";
license = lib.licenses.artistic2;
maintainers = with lib.maintainers; [
viric
ryand56
];
platforms = with lib.platforms; all;
};
}

View File

@@ -0,0 +1,17 @@
diff --git a/c/librcksum/Makefile.am b/c/librcksum/Makefile.am
index 0216e49..f4fce72 100644
--- a/librcksum/Makefile.am
+++ b/librcksum/Makefile.am
@@ -2,9 +2,8 @@
noinst_LIBRARIES = librcksum.a
-TESTS = md4test rsumtest
-noinst_PROGRAMS = md4test rsumtest
+TESTS = md4test
+noinst_PROGRAMS = md4test
md4test_SOURCES = md4test.c md4.h md4.c
-rsumtest_SOURCES = rsum.c rsumtest.c hash.c range.c state.c md4.c ../progress.c
librcksum_a_SOURCES = internal.h rcksum.h md4.h rsum.c hash.c state.c range.c md4.c