From 633cc6104aa9c29ba212237b74a116ca65436146 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Tue, 21 May 2024 21:50:38 +0200 Subject: [PATCH] Add repl command --- justfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/justfile b/justfile index b44ce6d..8d0ac78 100644 --- a/justfile +++ b/justfile @@ -12,3 +12,13 @@ build: update: nix flake update --commit-lock-file which fwupdmgr >/dev/null 2>&1 && fwupdmgr refresh || true + +repl: + nix repl --expr "\ + let \ + flake = builtins.getFlake \"$(git rev-parse --show-toplevel)\"; in \ + flake // { \ + lib = flake.inputs.nixpkgs.lib; \ + pkgs = flake.inputs.nixpkgs.legacyPackages."\${builtins.currentSystem}"; \ + } \ + "