···2222in
2323stdenv.mkDerivation rec {
2424 pname = "clightning";
2525- version = "23.02";
2525+ version = "23.02.2";
26262727 src = fetchurl {
2828 url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip";
2929- sha256 = "sha256-uvk7sApIwlrkH8eERBetf/nsAkN2d35T/IEtICFflzY=";
2929+ sha256 = "sha256-fHGBwf79Q0DSLs/b+Lhg9kdIQzDn5rJYEB9yLkLbxlE=";
3030 };
31313232 # when building on darwin we need dawin.cctools to provide the correct libtool
···364364 requiredSystemFeatures = [ "big-parallel" ];
365365366366 passthru = {
367367- inherit cudaSupport cudaPackages gpuTargetString;
368368- cudaCapabilities = supportedCudaCapabilities;
367367+ inherit cudaSupport cudaPackages;
369368 # At least for 1.10.2 `torch.fft` is unavailable unless BLAS provider is MKL. This attribute allows for easy detection of its availability.
370369 blasProvider = blas.provider;
370370+ } // lib.optionalAttrs cudaSupport {
371371+ # NOTE: supportedCudaCapabilities isn't computed unless cudaSupport is true, so we can't use
372372+ # it in the passthru set above because a downstream package might try to access it even
373373+ # when cudaSupport is false. Better to have it missing than null or an empty list by default.
374374+ cudaCapabilities = supportedCudaCapabilities;
371375 };
372376373377 meta = with lib; {