infat: init at 3.0.3

This commit is contained in:
Mirko Lenz
2025-09-30 09:35:38 +02:00
parent f0cc6e6348
commit 0f14469e1d
+38
View File
@@ -0,0 +1,38 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "infat";
version = "3.0.3";
src = fetchFromGitHub {
owner = "philocalyst";
repo = "infat";
tag = "v${finalAttrs.version}";
hash = "sha256-M0A9/rjw5aX4yfkEzkczLcvMpMuVTV5u1eyKhlM7nNk=";
};
cargoHash = "sha256-8WE9TiZX1QWenjEQF/uhzJ8Gqbggt8B9EZ+1tzWq72Q=";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Command line tool to set default openers for file formats and url schemes on macOS";
homepage = "https://github.com/philocalyst/infat";
changelog = "https://github.com/philocalyst/infat/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
platforms = lib.platforms.darwin;
maintainers = with lib.maintainers; [
mirkolenz
];
mainProgram = "infat";
};
})