mirror of
https://github.com/youwen5/nixos.git
synced 2025-02-21 03:01:11 -08:00
fix: use zoxide 0.9.7 if nushell newer than 0.102.0
This commit is contained in:
parent
588ed29f96
commit
e46763d86d
1 changed files with 15 additions and 0 deletions
|
@ -90,6 +90,21 @@ in
|
|||
enableFishIntegration = false;
|
||||
enableNushellIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
package =
|
||||
if
|
||||
(lib.versionAtLeast pkgs.zoxide.version "0.9.7" || lib.versionOlder pkgs.nushell.version "0.102.0")
|
||||
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=";
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
programs.gh = {
|
||||
|
|
Loading…
Reference in a new issue