* Move "checker" to lib. It seems to be unused though.
svn path=/nixpkgs/trunk/; revision=22819
This commit is contained in:
parent
b044e64989
commit
acd34843f0
@ -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);
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user