[Backport release-25.05] mergiraf: cleanup, modernize, adopt (#415112)

This commit is contained in:
Felix Bargfeldt 2025-06-08 23:51:54 +02:00 committed by GitHub
commit 116f56b379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,15 +1,15 @@
{
stdenv,
lib,
fetchFromGitea,
rustPlatform,
nix-update-script,
# native check inputs
git,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mergiraf";
version = "0.10.0";
@ -17,33 +17,33 @@ rustPlatform.buildRustPackage rec {
domain = "codeberg.org";
owner = "mergiraf";
repo = "mergiraf";
rev = "refs/tags/v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-wnXOl7KzSvvxQP4CebOJ+fEIn7fQDKTmO2PkGMRA4t4=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-jShWfd3m9g6YlUFLOzlMPFtuXAAfjh+sBujCJ9F2Uj0=";
nativeCheckInputs = [
git
];
nativeCheckInputs = [ git ];
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "Syntax-aware git merge driver for a growing collection of programming languages and file formats";
homepage = "https://mergiraf.org/";
changelog = "https://codeberg.org/mergiraf/mergiraf/releases/tag/v${version}";
downloadPage = "https://codeberg.org/mergiraf/mergiraf";
changelog = "https://codeberg.org/mergiraf/mergiraf/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
zimbatm
genga898
defelo
];
mainProgram = "mergiraf";
};
}
})