···50 # to install it because it would create a cyclic dependency between
51 # the outputs. We also need to enable the remote,
52 # which should not be done by default.
53- if cfg.enableTestRemote then (enableRemote cfg.package.installedTests "fwupd-tests") else {}
54 );
5556in {
···50 # to install it because it would create a cyclic dependency between
51 # the outputs. We also need to enable the remote,
52 # which should not be done by default.
53+ lib.optionalAttrs cfg.enableTestRemote (enableRemote cfg.package.installedTests "fwupd-tests")
54 );
5556in {
···611 };
612613 meta =
614- let cc_ = if cc != null then cc else {}; in
615- (if cc_ ? meta then removeAttrs cc.meta ["priority"] else {}) //
616 { description =
617 lib.attrByPath ["meta" "description"] "System C compiler" cc_
618 + " (wrapper script)";
···26 in lib.mapAttrs buildCudaToolkitRedistPackage attrs;
2728 # All cudatoolkit redist packages for the current cuda version
29- cudaToolkitRedistPackages = if
30- lib.hasAttr cudaVersion cudaToolkitRedistManifests
31- then buildCudaToolkitRedistPackages { version = cudaVersion; manifest = cudaToolkitRedistManifests.${cudaVersion}; }
32- else {};
3334in cudaToolkitRedistPackages
···26 in lib.mapAttrs buildCudaToolkitRedistPackage attrs;
2728 # All cudatoolkit redist packages for the current cuda version
29+ cudaToolkitRedistPackages = lib.optionalAttrs (lib.hasAttr cudaVersion cudaToolkitRedistManifests)
30+ (buildCudaToolkitRedistPackages { version = cudaVersion; manifest = cudaToolkitRedistManifests.${cudaVersion}; });
003132in cudaToolkitRedistPackages