* Move "checker" to lib. It seems to be unused though.

svn path=/nixpkgs/trunk/; revision=22819
This commit is contained in:
Eelco Dolstra 2010-07-30 09:24:55 +00:00
parent b044e64989
commit acd34843f0
2 changed files with 12 additions and 9 deletions

View File

@ -392,4 +392,16 @@ rec {
(eqListStrict (attrNames a) (attrNames b))
&& (eqListStrict (lib.attrValues a) (lib.attrValues b))
else a == b; # FIXME !
# Check absence of non-used options
# Obsolete?
checker = x: flag: opts: config:
(if flag then let result=(
(import ../build-support/checker)
opts config); in
(if (result=="") then x else
abort ("Unknown option specified: " + result))
else x);
}

View File

@ -149,15 +149,6 @@ let
# Return the first available value in the order: pkg.val, val, or default.
getPkgConfig = pkg : val : default : (getConfig [ pkg val ] (getConfig [ val ] default));
# Check absence of non-used options
checker = x: flag: opts: config:
(if flag then let result=(
(import ../build-support/checker)
opts config); in
(if (result=="") then x else
abort ("Unknown option specified: " + result))
else x);
builderDefs = lib.composedArgsAndFun (import ../build-support/builder-defs/builder-defs.nix) {
inherit stringsWithDeps lib stdenv writeScript
fetchurl fetchmtn fetchgit;