shh: move to finalAttrs pattern

+7 -7
+7 -7
pkgs/by-name/sh/shh/package.nix
··· 16 16 isNativeDocgen = 17 17 (stdenv.buildPlatform.canExecute stdenv.hostPlatform) && enableDocumentationFeature; 18 18 in 19 - rustPlatform.buildRustPackage rec { 19 + rustPlatform.buildRustPackage (finalAttrs: { 20 20 pname = "shh"; 21 21 version = "2025.9.22"; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "desbma"; 25 25 repo = "shh"; 26 - tag = "v${version}"; 26 + tag = "v${finalAttrs.version}"; 27 27 hash = "sha256-Esb6IR49YtGWvLmGLtviAyMLjoWZLQka2igC6yKJ3A0="; 28 28 }; 29 29 ··· 85 85 86 86 installManPage target/mangen/* 87 87 88 - installShellCompletion --cmd ${pname} \ 89 - target/shellcomplete/${pname}.{bash,fish} \ 90 - --zsh target/shellcomplete/_${pname} 88 + installShellCompletion --cmd ${finalAttrs.pname} \ 89 + target/shellcomplete/${finalAttrs.pname}.{bash,fish} \ 90 + --zsh target/shellcomplete/_${finalAttrs.pname} 91 91 ''; 92 92 93 93 # RUST_BACKTRACE = 1; ··· 99 99 homepage = "https://github.com/desbma/shh"; 100 100 license = lib.licenses.gpl3Only; 101 101 platforms = lib.platforms.linux; 102 - changelog = "https://github.com/desbma/shh/blob/v${version}/CHANGELOG.md"; 102 + changelog = "https://github.com/desbma/shh/blob/v${finalAttrs.version}/CHANGELOG.md"; 103 103 mainProgram = "shh"; 104 104 maintainers = with lib.maintainers; [ 105 105 erdnaxe 106 106 kuflierl 107 107 ]; 108 108 }; 109 - } 109 + })