about summary refs log tree commit diff
path: root/pkgs/lib
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2007-12-08 01:07:13 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2007-12-08 01:07:13 +0000
commit356c077ecf267499281d4f8f2daaeb9ea2c4ef7f (patch)
tree66ca24460561b4dd027914c3c0a98982e9e5d167 /pkgs/lib
parentf0405cf74f6120ec8068429dd5542c3a5016d229 (diff)
downloadnixlib-356c077ecf267499281d4f8f2daaeb9ea2c4ef7f.tar
nixlib-356c077ecf267499281d4f8f2daaeb9ea2c4ef7f.tar.gz
nixlib-356c077ecf267499281d4f8f2daaeb9ea2c4ef7f.tar.bz2
nixlib-356c077ecf267499281d4f8f2daaeb9ea2c4ef7f.tar.lz
nixlib-356c077ecf267499281d4f8f2daaeb9ea2c4ef7f.tar.xz
nixlib-356c077ecf267499281d4f8f2daaeb9ea2c4ef7f.tar.zst
nixlib-356c077ecf267499281d4f8f2daaeb9ea2c4ef7f.zip
Added XScreensaver; also changed version-stub.nix (now it does sumArgs itself, and requires builderDefs to be used) and added a merge of composing-builder and declarative flag processing.
svn path=/nixpkgs/branches/stdenv-updates/; revision=9880
Diffstat (limited to 'pkgs/lib')
-rw-r--r--pkgs/lib/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix
index 87948ad2f6f5..71803a9e3352 100644
--- a/pkgs/lib/default.nix
+++ b/pkgs/lib/default.nix
@@ -249,4 +249,7 @@ rec {
 	innerModifySumArgs f x (a // b);
   modifySumArgs = f: x: innerModifySumArgs f x {};
 
+  debugVal = if builtins ? trace then x: (builtins.trace x x) else x: x;
+  debugXMLVal = if builtins ? trace then x: (builtins.trace (builtins.toXML x) x) else x: x;
+
 }