From c09beace644ab80a7988c7959a4f0d51f2f2f8d2 Mon Sep 17 00:00:00 2001 From: "Reza (Shahin) Khanipour" Date: Thu, 25 Jul 2024 14:46:55 +0200 Subject: [PATCH] feat: add `jq` and `bat` (with alias) closes #36. --- devenv.nix | 6 ++++++ includes/base.nix.jinja | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/devenv.nix b/devenv.nix index f0d0644..badfd96 100644 --- a/devenv.nix +++ b/devenv.nix @@ -16,6 +16,9 @@ rustc # https://github.com/DataChefHQ/inception/issues/21 git + bat + jq + tealdeer ]; # This script is temporary due to two problems: @@ -31,6 +34,9 @@ Release a new version and update the CHANGELOG. ''; }; + scripts.cat.exec = '' + bat "$@"; + ''; languages.python = { enable = true; diff --git a/includes/base.nix.jinja b/includes/base.nix.jinja index 21fb5df..c927a79 100644 --- a/includes/base.nix.jinja +++ b/includes/base.nix.jinja @@ -17,16 +17,18 @@ # https://devenv.sh/scripts/ scripts.hello.exec = "echo $GREET"; + scripts.cat.exec = '' + bat "$@"; + ''; {% block script %}{% endblock %} - enterShell = '' - hello - ''; - # https://devenv.sh/packages/ packages = with pkgs; [ nixfmt-rfc-style + bat + jq + tealdeer {% block packages %}{% endblock %} ];