From 526c31034e0d595423a5f36dde62781bbb4eaef2 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Thu, 19 Dec 2024 08:39:28 +1100 Subject: [PATCH] Replace pkgs.fetchFromGithub with Flake input --- flake.lock | 19 ++++++++++++++++++- flake.nix | 5 +++++ modules/home/shells/default.nix | 9 ++------- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index ace07cc..dd2f081 100644 --- a/flake.lock +++ b/flake.lock @@ -793,7 +793,8 @@ "phoenix": "phoenix", "snowfall-flake": "snowfall-flake", "snowfall-lib": "snowfall-lib_2", - "treefmt-nix": "treefmt-nix" + "treefmt-nix": "treefmt-nix", + "zsh-cd-ls": "zsh-cd-ls" } }, "rust-overlay": { @@ -934,6 +935,22 @@ "repo": "treefmt-nix", "type": "github" } + }, + "zsh-cd-ls": { + "flake": false, + "locked": { + "lastModified": 1683132048, + "narHash": "sha256-QUnZBb0X6F42FcvNxq65zq2oB8cn1Ym4SuU8MXpIfN4=", + "owner": "zshzoo", + "repo": "cd-ls", + "rev": "f26c86baf50ca0e92b454753dc6f1d25228e67bf", + "type": "github" + }, + "original": { + "owner": "zshzoo", + "repo": "cd-ls", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index a4609ba..8351998 100644 --- a/flake.nix +++ b/flake.nix @@ -87,6 +87,11 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-utils.follows = "snowfall-lib/flake-utils-plus/flake-utils"; }; + + zsh-cd-ls = { + url = "github:zshzoo/cd-ls"; + flake = false; + }; }; outputs = diff --git a/modules/home/shells/default.nix b/modules/home/shells/default.nix index c07fbf6..265fc32 100644 --- a/modules/home/shells/default.nix +++ b/modules/home/shells/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, inputs, ... }: { config = { home.shellAliases = { @@ -27,12 +27,7 @@ } { name = "cd-ls"; - src = pkgs.fetchFromGitHub { - owner = "zshzoo"; - repo = "cd-ls"; - rev = "main"; - sha256 = "QUnZBb0X6F42FcvNxq65zq2oB8cn1Ym4SuU8MXpIfN4="; - }; + src = inputs.zsh-cd-ls; } ]; };