From d98f4ab00eb068c71f3109c609c3ba42769765f7 Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Mon, 25 Dec 2023 18:09:28 +0000 Subject: [PATCH] nix: passthru: expose the use* flags for inspection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit E.g.: ``` ❯ nix eval .#cuda.useCuda true ``` --- .devops/nix/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index 59c5e4c53..c6d03b4a4 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -162,6 +162,14 @@ effectiveStdenv.mkDerivation ( # Define the shells here, but don't add in the inputsFrom to avoid recursion. passthru = { + inherit + useBlas + useCuda + useMetalKit + useOpenCL + useRocm + ; + shell = mkShell { name = "default${descriptionSuffix}"; description = "contains numpy and sentencepiece";