From 46a571c24dd4f8a0eb7bedb0ca46c63b461813a7 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Tue, 15 Jul 2025 22:11:04 -0400 Subject: [PATCH] ethersync: init at 0.6.0 This is an NGI package. It has lived in NGIpkgs for a few months now and is ready to be migrated to Nixpkgs. Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/et/ethersync/package.nix | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/et/ethersync/package.nix diff --git a/pkgs/by-name/et/ethersync/package.nix b/pkgs/by-name/et/ethersync/package.nix new file mode 100644 index 000000000000..6a0ce6607327 --- /dev/null +++ b/pkgs/by-name/et/ethersync/package.nix @@ -0,0 +1,41 @@ +{ + fetchFromGitHub, + lib, + rustPlatform, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "ethersync"; + version = "0.6.0"; + + src = fetchFromGitHub { + owner = "ethersync"; + repo = "ethersync"; + tag = "v${finalAttrs.version}"; + hash = "sha256-dHV4+WxNdEvRZK8WNK0qp9f43Y9oSUtlXrq/mI0yWls="; + }; + + sourceRoot = "${finalAttrs.src.name}/daemon"; + + cargoHash = "sha256-uKtJp4RD0YbOmtzbxebpYQxlBmP+5k88d+76hT4cTI8="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Real-time co-editing of local text files"; + homepage = "https://ethersync.github.io/ethersync/"; + downloadPage = "https://github.com/ethersync/ethersync"; + changelog = "https://github.com/ethersync/ethersync/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ + prince213 + ethancedwards8 + ]; + }; +})