Skip to content

cudaPackages: nixpkgs-review broken by evaluation dependencies #275939

@SomeoneSerge

Description

@SomeoneSerge

Issue description

Part of #271217, related to #256324

Steps to reproduce

In the wild:

❯ nixpkgs-review pr --extra-nixpkgs-config '{ cudaSupport = true; cudaCapabilities = [ "8.6" ]; cudaEnableForwardCompat = false; }' 275921
...

         at /home/ss/.cache/nixpkgs-review/pr-275921-1/nixpkgs/pkgs/development/cuda-modules/flags.nix:222:27:

          221|           requestedJetsonDevices =
          222|             lists.filter (cap: cudaComputeCapabilityToIsJetson.${cap})
             |                           ^
          223|               cudaCapabilities;

       error: attribute '"8.6"' missing

       at /home/ss/.cache/nixpkgs-review/pr-275921-1/nixpkgs/pkgs/development/cuda-modules/flags.nix:222:32:

          221|           requestedJetsonDevices =
          222|             lists.filter (cap: cudaComputeCapabilityToIsJetson.${cap})
             |                                ^
          223|               cudaCapabilities;
       Did you mean one of 3.0, 3.2, 3.5, 3.7 or 5.0?
https://github.com/NixOS/nixpkgs/pull/275921 failed to build: Failed to list packages: nix-env failed with exit code 1

Minimal repro:

❯ nix build -f ./. --arg config '{ cudaSupport = true; cudaCapabilities = [ "8.6" ]; cudaEnableForwardCompat = false; allowUnfree = true; allowBroken = true; }' -L caffe

@NixOS/cuda-maintainers

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: cudaParallel computing platform and API

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions