···22in
23stdenv.mkDerivation rec {
24 pname = "clightning";
25- version = "23.02";
2627 src = fetchurl {
28 url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip";
29- sha256 = "sha256-uvk7sApIwlrkH8eERBetf/nsAkN2d35T/IEtICFflzY=";
30 };
3132 # when building on darwin we need dawin.cctools to provide the correct libtool
···22in
23stdenv.mkDerivation rec {
24 pname = "clightning";
25+ version = "23.02.2";
2627 src = fetchurl {
28 url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip";
29+ sha256 = "sha256-fHGBwf79Q0DSLs/b+Lhg9kdIQzDn5rJYEB9yLkLbxlE=";
30 };
3132 # when building on darwin we need dawin.cctools to provide the correct libtool
···364 requiredSystemFeatures = [ "big-parallel" ];
365366 passthru = {
367- inherit cudaSupport cudaPackages gpuTargetString;
368- cudaCapabilities = supportedCudaCapabilities;
369 # At least for 1.10.2 `torch.fft` is unavailable unless BLAS provider is MKL. This attribute allows for easy detection of its availability.
370 blasProvider = blas.provider;
00000371 };
372373 meta = with lib; {
···364 requiredSystemFeatures = [ "big-parallel" ];
365366 passthru = {
367+ inherit cudaSupport cudaPackages;
0368 # At least for 1.10.2 `torch.fft` is unavailable unless BLAS provider is MKL. This attribute allows for easy detection of its availability.
369 blasProvider = blas.provider;
370+ } // lib.optionalAttrs cudaSupport {
371+ # NOTE: supportedCudaCapabilities isn't computed unless cudaSupport is true, so we can't use
372+ # it in the passthru set above because a downstream package might try to access it even
373+ # when cudaSupport is false. Better to have it missing than null or an empty list by default.
374+ cudaCapabilities = supportedCudaCapabilities;
375 };
376377 meta = with lib; {