diff --git a/pkgs/by-name/pa/parsync/package.nix b/pkgs/by-name/pa/parsync/package.nix new file mode 100644 index 000000000000..ed6b3463855a --- /dev/null +++ b/pkgs/by-name/pa/parsync/package.nix @@ -0,0 +1,44 @@ +{ + lib, + fetchFromGitHub, + openssl, + pkg-config, + rustPlatform, + sqlite, + zlib, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "parsync"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "AlpinDale"; + repo = "parsync"; + tag = "v${finalAttrs.version}"; + hash = "sha256-XeHHfSrutKTL1JFxJrqo9K0lD2ZYuIxcxnusH6Q373M="; + }; + + cargoHash = "sha256-SHieyv7Kc9Qtx3C11wxjJTI28h2RDh+YY1Ks++Z1rQ8="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + openssl + sqlite + zlib + ]; + + env = { + OPENSSL_NO_VENDOR = true; + }; + + meta = { + description = "Tool to parallel rsync-like pull sync over SSH"; + homepage = "https://github.com/AlpinDale/parsync"; + changelog = "https://github.com/AlpinDale/parsync/releases/tag/${finalAttrs.src.rev}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "parsync"; + }; +})