mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
* strictAttrs: return the original attribute set.
svn path=/nixpkgs/trunk/; revision=23252
This commit is contained in:
parent
e8f1c8a08a
commit
7b9d03d596
|
@ -8,9 +8,9 @@ let
|
|||
|
||||
rel = removeAttrs (import ../../pkgs/top-level/release.nix) [ "tarball" "xbursttools" ];
|
||||
|
||||
strictList = xs: lib.fold (x: xs: lib.seq x xs) xs xs;
|
||||
seqList = xs: res: lib.fold (x: xs: lib.seq x xs) res xs;
|
||||
|
||||
strictAttrs = as: strictList (lib.attrValues as);
|
||||
strictAttrs = as: seqList (lib.attrValues as) as;
|
||||
|
||||
maybe = as: let y = builtins.tryEval (strictAttrs as); in if y.success then y.value else builtins.trace "FAIL" null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue