Add repl command

This commit is contained in:
Jakob Lechner 2024-05-21 21:50:38 +02:00
parent 4d283f82e4
commit 633cc6104a

View file

@ -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}"; \
} \
"