Fixup formatting
This commit is contained in:
parent
07a5a145a1
commit
5c04e88375
1 changed files with 60 additions and 63 deletions
|
@ -24,8 +24,8 @@ let
|
|||
|
||||
validPackageAttributes = builtins.filter
|
||||
(pkg:
|
||||
if (pkgs.lib.attrsets.hasAttrByPath pkg.path pkgs) then
|
||||
(if (builtins.tryEval (pkgs.lib.attrsets.attrByPath pkg.path null pkgs)).success
|
||||
if (pkgs.lib.attrsets.hasAttrByPath pkg.path pkgs)
|
||||
then (if (builtins.tryEval (pkgs.lib.attrsets.attrByPath pkg.path null pkgs)).success
|
||||
then true
|
||||
else builtins.trace "Failed to access ${pkg.name} even though it exists" false)
|
||||
else builtins.trace "Failed to locate ${pkg.name}." false
|
||||
|
@ -55,7 +55,7 @@ relevantFilenames = drv:
|
|||
[
|
||||
(builtins.unsafeGetAttrPos "maintainers" (drv.meta or {}))
|
||||
(builtins.unsafeGetAttrPos "src" drv)
|
||||
# broken because name is always set in stdenv:
|
||||
# broken because name is always set by stdenv:
|
||||
# # A hack to make `nix-env -qa` and `nix search` ignore broken packages.
|
||||
# # TODO(@oxij): remove this assert when something like NixOS/nix#1771 gets merged into nix.
|
||||
# name = assert validity.handled; name + lib.optionalString
|
||||
|
@ -76,8 +76,7 @@ attrsWithModifiedFiles = builtins.filter
|
|||
listToPing = pkgs.lib.lists.flatten
|
||||
(builtins.map
|
||||
(pkg:
|
||||
builtins.map
|
||||
(maintainer: {
|
||||
builtins.map (maintainer: {
|
||||
handle = maintainer.github;
|
||||
packageName = pkg.name;
|
||||
dueToFiles = pkg.filenames;
|
||||
|
@ -93,8 +92,7 @@ byMaintainer = pkgs.lib.lists.foldr
|
|||
|
||||
textForPackages = packages:
|
||||
pkgs.lib.strings.concatStringsSep ", " (
|
||||
builtins.map
|
||||
(pkg: pkg.packageName)
|
||||
builtins.map (pkg: pkg.packageName)
|
||||
packages);
|
||||
|
||||
textPerMaintainer = pkgs.lib.attrsets.mapAttrs
|
||||
|
@ -103,8 +101,7 @@ textPerMaintainer = pkgs.lib.attrsets.mapAttrs
|
|||
|
||||
packagesPerMaintainer = pkgs.lib.attrsets.mapAttrs
|
||||
(maintainer: packages:
|
||||
builtins.map
|
||||
(pkg: pkg.packageName)
|
||||
builtins.map (pkg: pkg.packageName)
|
||||
packages)
|
||||
byMaintainer;
|
||||
in packagesPerMaintainer
|
||||
|
|
Loading…
Reference in a new issue