lol

mergiraf: cleanup, modernize, adopt (#415065)

authored by zimbatm.tngl.sh and committed by

GitHub 651182ad e9a3f3ca

+11 -11
+11 -11
pkgs/by-name/me/mergiraf/package.nix
··· 1 1 { 2 - stdenv, 3 2 lib, 4 3 fetchFromGitea, 5 4 rustPlatform, 5 + nix-update-script, 6 6 7 7 # native check inputs 8 8 git, 9 9 versionCheckHook, 10 10 }: 11 11 12 - rustPlatform.buildRustPackage rec { 12 + rustPlatform.buildRustPackage (finalAttrs: { 13 13 pname = "mergiraf"; 14 14 version = "0.10.0"; 15 15 ··· 17 17 domain = "codeberg.org"; 18 18 owner = "mergiraf"; 19 19 repo = "mergiraf"; 20 - rev = "refs/tags/v${version}"; 20 + tag = "v${finalAttrs.version}"; 21 21 hash = "sha256-wnXOl7KzSvvxQP4CebOJ+fEIn7fQDKTmO2PkGMRA4t4="; 22 22 }; 23 23 24 24 useFetchCargoVendor = true; 25 25 cargoHash = "sha256-jShWfd3m9g6YlUFLOzlMPFtuXAAfjh+sBujCJ9F2Uj0="; 26 26 27 - nativeCheckInputs = [ 28 - git 29 - ]; 27 + nativeCheckInputs = [ git ]; 30 28 31 29 doInstallCheck = true; 32 - nativeInstallCheckInputs = [ 33 - versionCheckHook 34 - ]; 30 + nativeInstallCheckInputs = [ versionCheckHook ]; 35 31 36 32 versionCheckProgramArg = "--version"; 37 33 34 + passthru.updateScript = nix-update-script { }; 35 + 38 36 meta = { 39 37 description = "Syntax-aware git merge driver for a growing collection of programming languages and file formats"; 40 38 homepage = "https://mergiraf.org/"; 41 - changelog = "https://codeberg.org/mergiraf/mergiraf/releases/tag/v${version}"; 39 + downloadPage = "https://codeberg.org/mergiraf/mergiraf"; 40 + changelog = "https://codeberg.org/mergiraf/mergiraf/releases/tag/v${finalAttrs.version}"; 42 41 license = lib.licenses.gpl3Only; 43 42 maintainers = with lib.maintainers; [ 44 43 zimbatm 45 44 genga898 45 + defelo 46 46 ]; 47 47 mainProgram = "mergiraf"; 48 48 }; 49 - } 49 + })