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
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitea,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
|
|
# native check inputs
|
|
git,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "mergiraf";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "mergiraf";
|
|
repo = "mergiraf";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-aq0xeIj780wV6PlWj6dgDfXxzQHRRg0T6/EWLKVf+3o=";
|
|
};
|
|
|
|
cargoHash = "sha256-nsp+jV9bl3rAFbibvIUD9WT/VZ9b8PXGu4IReOIybuM=";
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
versionCheckProgramArg = "--version";
|
|
|
|
cargoBuildFlags = [
|
|
# don't install the `mgf_dev`
|
|
"--bin"
|
|
"mergiraf"
|
|
];
|
|
|
|
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/";
|
|
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";
|
|
};
|
|
})
|