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
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromSourcehut,
|
|
pkg-config,
|
|
sqlite,
|
|
installShellFiles,
|
|
makeWrapper,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "pimsync";
|
|
version = "0.4.4";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~whynothugo";
|
|
repo = "pimsync";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-M29kqvvNfs4zF1epurXGEas1phPdrEAFDnYKqyCzzfE=";
|
|
};
|
|
|
|
cargoHash = "sha256-HQObvolih9nOn0epu7tWkLa0ibkNarXy2pNNzllQtMg=";
|
|
|
|
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";
|
|
};
|
|
})
|