{ lib, rustPlatform, fetchFromSourcehut, pkg-config, sqlite, installShellFiles, makeWrapper, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "pimsync"; version = "0.4.3"; src = fetchFromSourcehut { owner = "~whynothugo"; repo = "pimsync"; rev = "v${finalAttrs.version}"; hash = "sha256-VPrEY3aJKhn96oaehJ8MrrUj0XoSOMWC7APbnw6OrsQ="; }; cargoHash = "sha256-m5tg50C6DMFuBrCW9sxYfeRRZv6Sncp8X40fzaKEsi0="; PIMSYNC_VERSION = finalAttrs.version; nativeBuildInputs = [ pkg-config makeWrapper installShellFiles ]; buildInputs = [ sqlite ]; postInstall = '' installManPage pimsync.1 pimsync.conf.5 pimsync-migration.7 ''; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "version"; doInstallCheck = true; passthru.updateScript = nix-update-script { }; meta = { description = "Synchronise calendars and contacts"; homepage = "https://git.sr.ht/~whynothugo/pimsync"; license = lib.licenses.eupl12; platforms = lib.platforms.unix; maintainers = [ lib.maintainers.qxrein ]; mainProgram = "pimsync"; }; })