* 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:
Nicolas Pierron 2009-11-16 22:23:11 +00:00
parent 29384d43f2
commit 01e98e49b1
2 changed files with 18 additions and 1 deletions

View File

@ -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; };
};
}

View File

@ -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