MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / nixInstall

Function nixInstall

install/install.ts:21–23  ·  view source on GitHub ↗
(...packages: string[])

Source from the content-addressed store, hash-verified

19const smallMemory = (freemem < 1024 * 1024 * 1024);
20
21const nixInstall = (...packages: string[]) => (smallMemory
22 ? packages.map((t) => `nix-env -iA ${t.includes('.') ? t : `nixpkgs.${t}`}`).join(' && ')
23 : `nix-env -iA ${packages.map((t) => (t.includes('.') ? t : `nixpkgs.${t}`)).join(' ')}`);
24
25const warnings: [string, ...any[]][] = [];
26

Callers 1

StepsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected