Update filter for python2.
This commit is contained in:
parent
2a0550566a
commit
9cefcd2509
1 changed files with 1 additions and 0 deletions
1
fn.nix
1
fn.nix
|
@ -45,6 +45,7 @@ rec {
|
||||||
[
|
[
|
||||||
{ path = ["meta" "broken"]; msg = (warn "Package ${p.name} is marked as broken." true); check = m: m; }
|
{ path = ["meta" "broken"]; msg = (warn "Package ${p.name} is marked as broken." true); check = m: m; }
|
||||||
{ path = ["meta" "knownVulnerabilities" ]; msg = (warn "Package ${p.name} has known Vulnerabilities.." true); check = m: m != []; }
|
{ path = ["meta" "knownVulnerabilities" ]; msg = (warn "Package ${p.name} has known Vulnerabilities.." true); check = m: m != []; }
|
||||||
|
{ path = ["name"]; msg = (warn "${p.name}: python2 is depricated." false); check = m: (strings.hasInfix "python2" m) || (strings.hasInfix "python-2" m); }
|
||||||
# not sure if the following test creates false positives (AFAIK every derivation/package needs to have an outPath)
|
# not sure if the following test creates false positives (AFAIK every derivation/package needs to have an outPath)
|
||||||
# , definitely should catch all corner cases/everything that fails to evaluate.
|
# , definitely should catch all corner cases/everything that fails to evaluate.
|
||||||
{ path = [ "outPath" ]; msg = (warn "Package ${p.name} has no outPath" true); check = m: !(tryEval m).success; }
|
{ path = [ "outPath" ]; msg = (warn "Package ${p.name} has no outPath" true); check = m: !(tryEval m).success; }
|
||||||
|
|
Loading…
Reference in a new issue