Reapply "remove nix_shell_legacy"

This reverts commit 1232fb5af2.
This commit is contained in:
Jörg Thalheim
2025-04-21 13:03:25 +02:00
parent 5eef4ba663
commit 80e739bd1b
24 changed files with 91 additions and 119 deletions

View File

@@ -9,7 +9,7 @@ from clan_cli.cmd import CmdOut, RunOpts, run
from clan_cli.errors import ClanError
from clan_cli.flake import Flake
from clan_cli.inventory import Inventory, init_inventory
from clan_cli.nix import nix_command, nix_metadata, nix_shell_legacy
from clan_cli.nix import nix_command, nix_metadata, nix_shell
from clan_cli.templates import (
InputPrio,
TemplateName,
@@ -41,7 +41,7 @@ class CreateOptions:
def git_command(directory: Path, *args: str) -> list[str]:
return nix_shell_legacy(["nixpkgs#git"], ["git", "-C", str(directory), *args])
return nix_shell(["git"], ["git", "-C", str(directory), *args])
@API.register