remove nix_shell_legacy

This commit is contained in:
Jörg Thalheim
2025-04-16 20:51:29 +02:00
parent 37f8b5919e
commit 8cde32c76f
24 changed files with 91 additions and 119 deletions

View File

@@ -6,7 +6,7 @@ from typing import Any, Literal
from clan_cli.cmd import RunOpts
from clan_cli.errors import ClanError
from clan_cli.nix import nix_shell_legacy, run_no_stdout
from clan_cli.nix import nix_shell, run_no_stdout
from . import API
@@ -126,8 +126,8 @@ def show_block_devices() -> Blockdevices:
It must return a list of block devices.
"""
cmd = nix_shell_legacy(
["nixpkgs#util-linux"],
cmd = nix_shell(
["util-linux"],
[
"lsblk",
"--json",

View File

@@ -3,7 +3,7 @@ import re
from dataclasses import dataclass
from clan_cli.cmd import run_no_stdout
from clan_cli.nix import nix_shell_legacy
from clan_cli.nix import nix_shell
from . import API
@@ -89,8 +89,8 @@ def parse_avahi_output(output: str) -> DNSInfo:
@API.register
def show_mdns() -> DNSInfo:
cmd = nix_shell_legacy(
["nixpkgs#avahi"],
cmd = nix_shell(
["avahi"],
[
"avahi-browse",
"--all",