Files
nixpkgs/pkgs/by-name/zs/zsync/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.3 KiB
Nix

{
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;
};
}