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