Commit 4f7c654
committed
nrfutil: guard nrfutil-completion as optional on all platforms
nrfutil-completion is absent from source.nix on some platforms
(e.g. aarch64-linux). Unconditionally listing it in the packages
map causes an evaluation error ('attribute nrfutil-completion
missing') on those platforms.
Guard the package with lib.optional and the postBuild shell
completion installation with lib.optionalString, both keyed on
'platformSources.packages ? nrfutil-completion', so the build
succeeds on every supported platform.
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>1 parent 63ae13a commit 4f7c654
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
0 commit comments