zerotier: move nix_shell to external package
This commit is contained in:
10
pkgs/clan-cli/clan_cli/nix.py
Normal file
10
pkgs/clan-cli/clan_cli/nix.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
|
||||
CLAN_NIXPKGS = os.environ.get("CLAN_NIXPKGS")
|
||||
|
||||
|
||||
def nix_shell(packages: list[str], cmd: list[str]) -> list[str]:
|
||||
# in unittest we will have all binaries provided
|
||||
if CLAN_NIXPKGS is None:
|
||||
return cmd
|
||||
return ["nix", "shell", "-f", CLAN_NIXPKGS] + packages + ["-c"] + cmd
|
||||
Reference in New Issue
Block a user