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