From 58b48bfe14cbfc7c9c2bbc5685c22c22c9347fd9 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Sun, 2 Mar 2025 17:19:56 -0300 Subject: [PATCH] fix(devShells,devkit): list being concacted into string --- flake.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 6b93496..dd43373 100644 --- a/flake.nix +++ b/flake.nix @@ -126,8 +126,10 @@ ... }: { devkit = import ./packages/devkit {inherit pkgs inputs;}; - devkit-shell = pkgs.writeShellScriptBin "devkit-shell" '' - export PATH="$PATH:${lib.makeBinPath (with self.packages.${pkgs.system}.devkit; [ + devkit-shell = let + devkit = self.packages.${pkgs.system}.devkit; + packages = + (with devkit; [ git lazygit starship @@ -136,7 +138,7 @@ zellij zsh ]) - + [ + ++ [ inputs.dot013-nvim.packages.${pkgs.system}.default # Useful on new Nix installations @@ -145,9 +147,12 @@ --experimental-features 'nix-command flakes' \ "$@" '') - ]}" - ${lib.getExe self.packages.${pkgs.system}.devkit.zsh} "$@" - ''; + ]; + in + pkgs.writeShellScriptBin "devkit-shell" '' + export PATH="$PATH:${lib.makeBinPath packages}" + ${lib.getExe devkit.zsh} "$@" + ''; }); devShells = forAllSystems ({