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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user