Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
# ... | |
nix.settings.system-features = [ "expose-cuda" ]; | |
nix.settings.pre-build-hook = pkgs.writers.writePython3 "nix-pre-build.py" { } (builtins.readFile ./nix-pre-build-hook.py); | |
# ... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "A very basic flake"; | |
outputs = { self, nixpkgs }: { | |
devShells.x86_64-linux.default = with nixpkgs.legacyPackages.x86_64-linux; mkShell { | |
shellHook = '' | |
read FLAKE_ROOT < <( | |
${lib.getExe nix} flake metadata --json | ${lib.getExe jq} .locked.path --raw-output | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for prefix in Target Host; do | |
for cross in true false; do | |
for case in Good Bad; do | |
outName=test${case}${prefix}_cross=${cross} | |
nix build -f test-hooks.nix --argstr depSet "$prefix$prefix" --arg cross "$cross" "test$case" -o "$outName" | |
nix log -f test-hooks.nix --argstr depSet "$prefix$prefix" --arg cross "$cross" "test$case" > "$outName".log | |
diff -s -u5 testGoodTarget_cross=true.log "$outName".log > "$outName.diff" | |
done | |
done | |
done |
OlderNewer