Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__
.vscode
node_modules
result
2 changes: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ Julian Gomez <[email protected]> Julian Gomez <6036568
Julian Gomez <[email protected]> Julian Gomez <[email protected]>
Karen Camargo <[email protected]> Karen Camargo <[email protected]>
Kevin Amado <[email protected]> Kevin Amado <[email protected]>
Luis Saavedra <[email protected]> Luis Saavedra <[email protected]>
Luis Saavedra <[email protected]> Luis David Saavedra <[email protected]>
Luis Saavedra <[email protected]> Luis Saavedra <[email protected]>
Luis Saavedra <[email protected]> Luis Saavedra <[email protected]>
Robin Hafid <[email protected]> Robin Hafid <[email protected]>
Robin Quintero <[email protected]> Robin Quintero <[email protected]>
Sebastian Cardona <[email protected]> Sebastian Cardona <[email protected]>
Expand Down
9 changes: 8 additions & 1 deletion src/cli/main/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def _nix_build(
*["--argstr", "projectSrc", head],
*["--argstr", "attrPaths", attr_paths],
*["--attr", attr],
*["--option", "experimental-features", "flakes nix-command"],
*["--option", "cores", "0"],
*["--option", "narinfo-cache-negative-ttl", "1"],
*["--option", "narinfo-cache-positive-ttl", "1"],
Expand All @@ -294,6 +295,7 @@ def _nix_hashes(paths: bytes) -> List[str]:
cmd = [
"xargs",
f"{__NIX__}/bin/nix-store",
"--option", "experimental-features", "flakes nix-command",
"--query",
"--hash",
]
Expand All @@ -306,13 +308,18 @@ def _nix_hashes(paths: bytes) -> List[str]:

def _nix_build_requisites(path: str) -> List[Tuple[str, str]]:
"""Answer the question: what do I need to build `out`."""
cmd = [f"{__NIX__}/bin/nix-store", "--query", "--deriver", path]
cmd = [f"{__NIX__}/bin/nix-store",
"--option", "experimental-features", "flakes nix-command",
"--query",
"--deriver",
path]
out, stdout, _ = _run_outputs(cmd, stderr=None)
if out != 0:
raise SystemExit(out)

cmd = [
f"{__NIX__}/bin/nix-store",
"--option", "experimental-features", "flakes nix-command",
"--query",
"--requisites",
"--include-outputs",
Expand Down
Loading