···149149 });
150150151151152152- /* Return a modified stdenv that builds packages with GCC's coverage
153153- instrumentation. The coverage note files (*.gcno) are stored in
154154- $out/.build, along with the source code of the package, to enable
155155- programs like lcov to produce pretty-printed reports.
156156- */
152152+ # remove after 22.05 and before 22.11
157153 addCoverageInstrumentation = stdenv:
154154+ builtins.trace "'addCoverageInstrumentation' adapter is deprecated and will be removed before 22.11"
158155 overrideInStdenv stdenv [ pkgs.enableGCOVInstrumentation pkgs.keepBuildTree ];
159156160157161161- /* Replace the meta.maintainers field of a derivation. This is useful
162162- when you want to fork to update some packages without disturbing other
163163- developers.
164164-165165- e.g.: in all-packages.nix:
166166-167167- # remove all maintainers.
168168- defaultStdenv = replaceMaintainersField allStdenvs.stdenv pkgs [];
169169- */
158158+ # remove after 22.05 and before 22.11
170159 replaceMaintainersField = stdenv: pkgs: maintainers:
160160+ builtins.trace "'replaceMaintainersField' adapter is deprecated and will be removed before 22.11"
171161 stdenv.override (old: {
172162 mkDerivationFromStdenv = overrideMkDerivationResult (pkg:
173163 lib.recursiveUpdate pkg { meta.maintainers = maintainers; });
···193183 });
194184195185196196- /* Abort if the license predicate is not verified for a derivation
197197- declared with mkDerivation.
198198-199199- One possible predicate to avoid all non-free packages can be achieved
200200- with the following function:
201201-202202- isFree = license: with builtins;
203203- if license == null then true
204204- else if isList license then lib.all isFree license
205205- else license != "non-free" && license != "unfree";
206206-207207- This adapter can be defined on the defaultStdenv definition. You can
208208- use it by patching the all-packages.nix file or by using the override
209209- feature of ~/.config/nixpkgs/config.nix .
210210- */
186186+ # remove after 22.05 and before 22.11
211187 validateLicenses = licensePred: stdenv:
188188+ builtins.trace "'validateLicenses' adapter is deprecated and will be removed before 22.11"
212189 stdenv.override (old: {
213190 mkDerivationFromStdenv = overrideMkDerivationResult (pkg:
214191 let