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 <60365681+jgomezb11@users.noreply.github.com> Julian Gomez <6036568
Julian Gomez <jgomezb11@eafit.edu.co> Julian Gomez <jgomezb11@eafit.edu.co>
Karen Camargo <kjcamargo19@gmail.com> Karen Camargo <kjcamargo19@gmail.com>
Kevin Amado <kamadorueda@gmail.com> Kevin Amado <kamadorueda@gmail.com>
Luis Saavedra <40694133+ludsrill@users.noreply.github.com> Luis Saavedra <40694133+ludsrill@users.noreply.github.com>
Luis Saavedra <lsaavedra@fluidattacks.com> Luis David Saavedra <40694133+ludsrill@users.noreply.github.com>
Luis Saavedra <lsaavedra@fluidattacks.com> Luis Saavedra <lsaavedra@fluidattacks.com>
Luis Saavedra <luisdavidsag@gmail.com> Luis Saavedra <luisdavidsag@gmail.com>
Robin Hafid <rohaquinlop301@gmail.com> Robin Hafid <rohaquinlop301@gmail.com>
Robin Quintero <rohaquinlop301@gmail.com> Robin Quintero <rohaquinlop301@gmail.com>
Sebastian Cardona <sebas03181@gmail.com> Sebastian Cardona <132764573+sebas031811@users.noreply.github.com>
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