amazon-q-cli: 1.8.0 -> 1.9.1 (#404584)

authored by

Pol Dellaiera and committed by
GitHub
4b879da1 75be7b5c

+21 -13
+21 -13
pkgs/by-name/am/amazon-q-cli/package.nix
··· 3 fetchFromGitHub, 4 rustPlatform, 5 protobuf_26, 6 }: 7 8 - rustPlatform.buildRustPackage rec { 9 pname = "amazon-q-cli"; 10 - version = "1.8.0"; 11 12 src = fetchFromGitHub { 13 owner = "aws"; 14 repo = "amazon-q-developer-cli"; 15 - tag = "v${version}"; 16 - hash = "sha256-fOz9oz+xNwX2Bzl6szgQ9oai6lqP+EzbaCNzHPUT2cA="; 17 }; 18 19 useFetchCargoVendor = true; 20 21 - cargoHash = "sha256-H9bCke3vQDuS6RDEg8dzeFiBWCex64A8KSRhfgyp8e8="; 22 23 cargoBuildFlags = [ 24 "-p" 25 "q_cli" 26 ]; 27 cargoTestFlags = [ 28 "-p" 29 "q_cli" ··· 52 "--skip=init_lint_zsh_pre_zshrc" 53 ]; 54 55 - nativeBuildInputs = [ 56 - protobuf_26 57 - ]; 58 - 59 - postInstall = '' 60 - mv $out/bin/q_cli $out/bin/amazon-q 61 - ''; 62 63 meta = { 64 description = "Amazon Q Developer AI coding agent CLI"; ··· 67 mit 68 asl20 69 ]; 70 maintainers = [ lib.maintainers.jamesward ]; 71 platforms = lib.platforms.linux; 72 }; 73 - }
··· 3 fetchFromGitHub, 4 rustPlatform, 5 protobuf_26, 6 + versionCheckHook, 7 }: 8 9 + rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "amazon-q-cli"; 11 + version = "1.9.1"; 12 13 src = fetchFromGitHub { 14 owner = "aws"; 15 repo = "amazon-q-developer-cli"; 16 + tag = "v${finalAttrs.version}"; 17 + hash = "sha256-BiVCiMBL5LLm8RYw58u6P7yqQq9XnN8b6fTbxNE2QsA="; 18 }; 19 20 useFetchCargoVendor = true; 21 22 + cargoHash = "sha256-7zUgWLGTZx3Ex7RYxb3eZimWdy6AxkNwpCDUwiAr2JE="; 23 24 cargoBuildFlags = [ 25 "-p" 26 "q_cli" 27 ]; 28 + 29 + nativeBuildInputs = [ 30 + protobuf_26 31 + ]; 32 + 33 + postInstall = '' 34 + install -m 0755 $out/bin/q_cli $out/bin/amazon-q 35 + ''; 36 + 37 cargoTestFlags = [ 38 "-p" 39 "q_cli" ··· 62 "--skip=init_lint_zsh_pre_zshrc" 63 ]; 64 65 + doInstallCheck = true; 66 + nativeInstallCheckInputs = [ versionCheckHook ]; 67 + versionCheckProgram = "${placeholder "out"}/bin/amazon-q"; 68 + versionCheckProgramArg = "--version"; 69 70 meta = { 71 description = "Amazon Q Developer AI coding agent CLI"; ··· 74 mit 75 asl20 76 ]; 77 + mainProgram = "amazon-q"; 78 maintainers = [ lib.maintainers.jamesward ]; 79 platforms = lib.platforms.linux; 80 }; 81 + })