nixpkgs/pkgs/by-name/me/mergiraf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.0 KiB
Nix
Raw Normal View History

2024-11-13 02:52:48 -07:00
{
stdenv,
lib,
fetchFromGitea,
rustPlatform,
# native check inputs
git,
2024-11-13 13:30:54 -07:00
versionCheckHook,
2024-11-13 02:52:48 -07:00
}:
rustPlatform.buildRustPackage rec {
pname = "mergiraf";
2024-11-13 13:30:54 -07:00
version = "0.3.0";
2024-11-13 02:52:48 -07:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "mergiraf";
repo = "mergiraf";
rev = "refs/tags/v${version}";
2024-11-13 13:30:54 -07:00
hash = "sha256-yBLSN5+rPPoxA6Bn1O2NNGNo9cDfowZdaOtVvvUmNAM=";
2024-11-13 02:52:48 -07:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"tree-sitter-xml-0.7.0" = "sha256-RTWvOUAs3Uql9DKsP1jf9FZZHaZORE40GXd+6g6RQZw=";
};
};
2024-11-13 13:30:54 -07:00
nativeCheckInputs = [
git
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
2024-11-13 02:52:48 -07:00
meta = {
description = "Syntax-aware git merge driver for a growing collection of programming languages and file formats";
homepage = "https://mergiraf.org/";
2024-11-13 13:30:54 -07:00
changelog = "https://codeberg.org/mergiraf/mergiraf/releases/v${version}";
2024-11-13 02:52:48 -07:00
license = lib.licenses.gpl3Only;
2024-11-13 13:30:54 -07:00
maintainers = with lib.maintainers; [
zimbatm
genga898
];
mainProgram = "mergiraf";
2024-11-13 02:52:48 -07:00
};
}