From 319794933f1425bca24d68a37c284faa7920f4e5 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sat, 28 Jan 2023 22:05:30 +0100 Subject: [PATCH] devshell: fix nvfetcher rebuilding, simplify with alias --- shell/devos.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/shell/devos.nix b/shell/devos.nix index 5a922b4b..b0c4b26c 100644 --- a/shell/devos.nix +++ b/shell/devos.nix @@ -39,16 +39,15 @@ in { # override for our own welcome devshell.name = pkgs.lib.mkForce "PubSolarOS"; + devshell.startup.aliases.text = '' + alias nvfetcher="nvfetcher --config $PRJ_ROOT/sources.toml --build-dir PRJ_ROOT/pkgs/_sources" + ''; + commands = with pkgs; [ (devos nix) (devos agenix) - { - category = "devos"; - name = pkgs.nvfetcher.pname; - help = pkgs.nvfetcher.meta.description; - command = "cd $PRJ_ROOT/pkgs; ${pkgs.nvfetcher}/bin/nvfetcher -c ./sources.toml $@"; - } + (devos nvfetcher) (linter alejandra) (linter editorconfig-checker) (linter nodePackages.prettier)