From 93609c09dbcf7f04e41c7e7e955d95a09e65152a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 27 Feb 2025 11:12:21 +0100 Subject: [PATCH] rye: 0.43.0 -> 0.44.0 Diff: https://github.com/mitsuhiko/rye/compare/refs/tags/0.43.0...0.44.0 Changelog: https://github.com/mitsuhiko/rye/releases/tag/0.44.0 --- pkgs/by-name/ry/rye/package.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/ry/rye/package.nix b/pkgs/by-name/ry/rye/package.nix index e710dcff70fb..89dc923d09d8 100644 --- a/pkgs/by-name/ry/rye/package.nix +++ b/pkgs/by-name/ry/rye/package.nix @@ -11,6 +11,7 @@ openssl, stdenv, + buildPackages, versionCheckHook, # passthru @@ -19,17 +20,17 @@ rustPlatform.buildRustPackage rec { pname = "rye"; - version = "0.43.0"; + version = "0.44.0"; src = fetchFromGitHub { owner = "mitsuhiko"; repo = "rye"; tag = version; - hash = "sha256-AhHLSEEqfbUGb5roxZukW4Pd8XjOrmQ14Yoi+wUzAk4="; + hash = "sha256-K9xad5Odza0Oxz49yMJjqpfh3cCgmWnbAlv069fHV6Q="; }; useFetchCargoVendor = true; - cargoHash = "sha256-Jfht+6DlaOLoNQaX45bItEaf8E++XWXbwCgI8jojhX0="; + cargoHash = "sha256-+gFa8hruXIweFm24XvfhqXZxNLAYKVNX+xBSCdAk54A="; env = { OPENSSL_NO_VENDOR = 1; @@ -44,12 +45,16 @@ rustPlatform.buildRustPackage rec { openssl ]; - postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' - installShellCompletion --cmd rye \ - --bash <($out/bin/rye self completion -s bash) \ - --fish <($out/bin/rye self completion -s fish) \ - --zsh <($out/bin/rye self completion -s zsh) - ''; + postInstall = + let + emulator = stdenv.hostPlatform.emulator buildPackages; + in + '' + installShellCompletion --cmd rye \ + --bash <(${emulator} $out/bin/rye self completion -s bash) \ + --fish <(${emulator} $out/bin/rye self completion -s fish) \ + --zsh <(${emulator} $out/bin/rye self completion -s zsh) + ''; checkFlags = [ "--skip=utils::test_is_inside_git_work_tree"