Skip to content

Commit d98f4ab

Browse files
committed
nix: passthru: expose the use* flags for inspection
E.g.: ``` ❯ nix eval .#cuda.useCuda true ```
1 parent 42c7bbe commit d98f4ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.devops/nix/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ effectiveStdenv.mkDerivation (
162162

163163
# Define the shells here, but don't add in the inputsFrom to avoid recursion.
164164
passthru = {
165+
inherit
166+
useBlas
167+
useCuda
168+
useMetalKit
169+
useOpenCL
170+
useRocm
171+
;
172+
165173
shell = mkShell {
166174
name = "default${descriptionSuffix}";
167175
description = "contains numpy and sentencepiece";

0 commit comments

Comments
 (0)