From 27958ff0f248d0128c3fef0698d4245ad796f369 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Fri, 30 Jan 2026 01:15:40 +0000 Subject: [PATCH] rumdl: 0.1.2 -> 0.1.6 Diff: https://github.com/rvben/rumdl/compare/v0.1.2...v0.1.6 Releases: https://github.com/rvben/rumdl/releases/tag/v0.1.6 https://github.com/rvben/rumdl/releases/tag/v0.1.5 https://github.com/rvben/rumdl/releases/tag/v0.1.4 https://github.com/rvben/rumdl/releases/tag/v0.1.3 Shell completions were added in v0.1.6. --- pkgs/by-name/ru/rumdl/package.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ru/rumdl/package.nix b/pkgs/by-name/ru/rumdl/package.nix index 1449a2fc2e5f..3047e89eb30b 100644 --- a/pkgs/by-name/ru/rumdl/package.nix +++ b/pkgs/by-name/ru/rumdl/package.nix @@ -2,28 +2,34 @@ lib, fetchFromGitHub, rustPlatform, + installShellFiles, gitMinimal, + stdenvNoCC, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "rumdl"; - version = "0.1.2"; + version = "0.1.6"; src = fetchFromGitHub { owner = "rvben"; repo = "rumdl"; tag = "v${finalAttrs.version}"; - hash = "sha256-8K+jZL/yo7ur5WD+5+L+ZHhFkhYo83brgD6Gg1Xo6js="; + hash = "sha256-n8rGccgwf0ybttAsYt6OrmFz/aH3TOHksLZMc/AqSv0="; }; - cargoHash = "sha256-dpHV5+DJLsjwvLkxtXOS7CYUNKXW57o0O541pO8vN5U="; + cargoHash = "sha256-haRjTd7cp0eJnK4CUUVsZZumZ+SVS+TaR1PpkdOoNb4="; cargoBuildFlags = [ "--bin=rumdl" ]; + nativeBuildInputs = [ + installShellFiles + ]; + nativeCheckInputs = [ gitMinimal ]; @@ -35,6 +41,13 @@ rustPlatform.buildRustPackage (finalAttrs: { "--profile smoke" ]; + postInstall = lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) '' + installShellCompletion --cmd rumdl \ + --bash <("$out/bin/rumdl" completions bash) \ + --fish <("$out/bin/rumdl" completions fish) \ + --zsh <("$out/bin/rumdl" completions zsh) + ''; + doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook