Files
nixpkgs/pkgs/by-name/op/openrsync/package.nix
Marcin Serwin 561f7bb9c9 openrsync: modernize
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-06-11 19:41:05 +02:00

44 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation {
pname = "openrsync";
version = "0.5.0-unstable-2026-05-31";
src = fetchFromGitHub {
owner = "kristapsdz";
repo = "openrsync";
rev = "48070e68d73f67d6922b2ffc8c2dee9754e659c6";
hash = "sha256-9ApkHIak1/XQn1nMwdC0iiZEzZI2gHCOIj8P6bQPFyA=";
};
strictDeps = true;
__structuredAttrs = true;
enableParallelBuilding = true;
# Uses oconfigure
env.prefixKey = "PREFIX=";
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex=^VERSION_(\\d+)_(\\d+)_(\\d+.*)"
"--version=branch"
];
};
meta = {
homepage = "https://www.openrsync.org/";
description = "BSD-licensed implementation of rsync";
mainProgram = "openrsync";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ fgaz ];
# https://github.com/kristapsdz/openrsync#portability
# https://github.com/kristapsdz/oconfigure#readme
platforms = lib.platforms.unix;
};
}