* Add a stdenv adapter which can remove all maintainers fields. This can
be used to remove error reports from development branches. svn path=/nixpkgs/trunk/; revision=18377
This commit is contained in:
parent
29384d43f2
commit
01e98e49b1
@ -186,4 +186,20 @@ rec {
|
||||
# `keepBuildTree' adapter as well.
|
||||
(cleanupBuildTree (keepBuildTree stdenv));
|
||||
|
||||
|
||||
/* Replace the meta.maintainers field of a derivation. This is useful
|
||||
when you want to fork to update some packages without disturbing other
|
||||
developers.
|
||||
|
||||
e.g.: in all-packages.nix:
|
||||
|
||||
# remove all maintainers.
|
||||
defaultStdenv = replaceMaintainersField allStdenvs.stdenv pkgs [];
|
||||
*/
|
||||
replaceMaintainersField = stdenv: pkgs: maintainers: stdenv //
|
||||
{ mkDerivation = args:
|
||||
pkgs.lib.recursiveUpdate
|
||||
(stdenv.mkDerivation args)
|
||||
{ meta.maintainers = maintainers; };
|
||||
};
|
||||
}
|
||||
|
@ -237,7 +237,8 @@ let
|
||||
inherit (import ../stdenv/adapters.nix {inherit (pkgs) dietlibc fetchurl runCommand;})
|
||||
overrideGCC overrideInStdenv overrideSetup
|
||||
useDietLibC useKlibc makeStaticBinaries addAttrsToDerivation
|
||||
keepBuildTree cleanupBuildTree addCoverageInstrumentation;
|
||||
keepBuildTree cleanupBuildTree addCoverageInstrumentation
|
||||
replaceMaintainersField;
|
||||
|
||||
|
||||
### BUILD SUPPORT
|
||||
|
Loading…
Reference in New Issue
Block a user