devshell: fix nvfetcher rebuilding, simplify with

alias
This commit is contained in:
teutat3s 2023-01-28 22:05:30 +01:00
parent 97f41a9034
commit be42db9a25
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -39,16 +39,15 @@ in {
# override for our own welcome # override for our own welcome
devshell.name = pkgs.lib.mkForce "PubSolarOS"; 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; commands = with pkgs;
[ [
(devos nix) (devos nix)
(devos agenix) (devos agenix)
{ (devos nvfetcher)
category = "devos";
name = pkgs.nvfetcher.pname;
help = pkgs.nvfetcher.meta.description;
command = "cd $PRJ_ROOT/pkgs; ${pkgs.nvfetcher}/bin/nvfetcher -c ./sources.toml $@";
}
(linter alejandra) (linter alejandra)
(linter editorconfig-checker) (linter editorconfig-checker)
(linter nodePackages.prettier) (linter nodePackages.prettier)