Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions nixpkgs_review/nix.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import subprocess
from dataclasses import dataclass, field
from pathlib import Path
from sys import platform
from tempfile import NamedTemporaryFile
from typing import Any, Dict, List, Optional, Set

Expand Down Expand Up @@ -135,10 +136,17 @@ def nix_build(attr_names: Set[str], args: str, cache_directory: Path) -> List[At
"build",
"--no-link",
"--keep-going",
# only matters for single-user nix and trusted users
"--option",
"build-use-sandbox",
"relaxed",
]

if platform == "linux":
command += [
# only matters for single-user nix and trusted users
"--option",
"build-use-sandbox",
"relaxed",
]

command += [
"-f",
str(build),
] + shlex.split(args)
Expand Down