From 9a235e3792b8c395494ce3c4442b8b19c9f3549e Mon Sep 17 00:00:00 2001 From: Darren Rambaud <225436867+debtquity@users.noreply.github.com> Date: Sat, 28 Feb 2026 19:05:09 -0600 Subject: [PATCH] ory: 0.3.4 -> 1.2.0 * diff: https://github.com/ory/cli/compare/v0.3.4...v1.2.0 * changelog: https://github.com/ory/cli/releases/tag/v1.2.0 * newer version of ory cli reads `version` env var, and expects it in `vMAJOR.MINOR.PATCH` format. Rather than update `finalAttrs.version` I opted to temporarily export `version` to the expected format during postInstall phase. Appears to be a known bug in upstream (see: ory/cli#404) --- pkgs/by-name/or/ory/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/or/ory/package.nix b/pkgs/by-name/or/ory/package.nix index 4028fe1b2f04..5ba8a09a9d9f 100644 --- a/pkgs/by-name/or/ory/package.nix +++ b/pkgs/by-name/or/ory/package.nix @@ -8,13 +8,13 @@ buildGoModule (finalAttrs: { pname = "ory"; - version = "0.3.4"; + version = "1.2.0"; src = fetchFromGitHub { owner = "ory"; repo = "cli"; tag = "v${finalAttrs.version}"; - hash = "sha256-q7+Fpttgx62GbKxCCiEDlX//e/pNO24e7KhhBeGRDH0="; + hash = "sha256-WqVcVqdgzlI6OvgLA4OViBsU0DGaTnv5F+Ew58UzQlM="; }; nativeBuildInputs = [ @@ -29,12 +29,12 @@ buildGoModule (finalAttrs: { "sqlite" ]; - vendorHash = "sha256-B0y1JVjJmC5eitn7yIcDpl+9+xaBDJBMdvm+7N/ZxTk="; - + vendorHash = "sha256-W7yi6CSioLnLmOsK7hdB3C96fV7METOe+wzKKMWpphw="; postInstall = '' mv $out/bin/cli $out/bin/ory '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + export version=v${finalAttrs.version} installShellCompletion --cmd ory \ --bash <($out/bin/ory completion bash) \ --fish <($out/bin/ory completion fish) \