From a1bac45bd38b4d9edee02cb7de85740cde53267a Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 11 Feb 2025 13:21:00 -0800 Subject: [PATCH] fixup! fix: use zoxide 0.9.7 if nushell newer than 0.102.0 --- hm/modules/common/shellenv/default.nix | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/hm/modules/common/shellenv/default.nix b/hm/modules/common/shellenv/default.nix index 7bc6dc6..6a558ba 100644 --- a/hm/modules/common/shellenv/default.nix +++ b/hm/modules/common/shellenv/default.nix @@ -96,15 +96,22 @@ in then pkgs.zoxide else - pkgs.zoxide.overrideAttrs (finalAttrs: { - version = "0.9.7"; - src = pkgs.fetchFromGitHub { - owner = "ajeetdsouza"; - repo = "zoxide"; - rev = "v${finalAttrs.version}"; - hash = "sha256-3XC5K4OlituoFMPN9yJkYi+tkH6M0KK5jVAGdr/GLd0="; - }; - }); + pkgs.zoxide.overrideAttrs ( + finalAttrs: prevAttrs: { + version = "0.9.7"; + src = pkgs.fetchFromGitHub { + owner = "ajeetdsouza"; + repo = "zoxide"; + rev = "v${finalAttrs.version}"; + hash = "sha256-+QZpLMlHOZdbKLFYOUOIRZHvIsbMDdstj9oGzyEGVxk="; + }; + + cargoDeps = pkgs.rustPlatform.fetchCargoVendor { + inherit (finalAttrs) src; + hash = "sha256-uqIL8KTrgWzzzyoPR9gctyh0Rf7WQpTGqXow2/xFvCU="; + }; + } + ); }; programs.gh = {