mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
mergiraf: cleanup, modernize, adopt (#415065)
This commit is contained in:
commit
651182ad27
1 changed files with 11 additions and 11 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue