File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 elemAt
1818 extendDerivation
1919 filter
20+ filterAttrs
2021 findFirst
2122 getDev
2223 head
715716 ] ;
716717 }
717718 // (
719+ let
720+ attrsOutputChecks = makeOutputChecks attrs ;
721+ attrsOutputChecksFiltered = filterAttrs ( _ : v : v != null ) attrsOutputChecks ;
722+ in
718723 if ! __structuredAttrs then
719- makeOutputChecks attrs
724+ attrsOutputChecks
720725 else
721726 {
722727 outputChecks = builtins . listToAttrs (
725730 value =
726731 let
727732 raw = zipAttrsWith ( _ : builtins . concatLists ) [
728- ( makeOutputChecks attrs )
733+ attrsOutputChecksFiltered
729734 ( makeOutputChecks attrs . outputChecks . ${ name } or { } )
730735 ] ;
731736 in
Original file line number Diff line number Diff line change 6262 } ) . pname ;
6363 expected = "hello-no-final-attrs-overridden" ;
6464 } ;
65+ structuredAttrs-allowedRequisites-nullablility = {
66+ expr =
67+ lib . hasPrefix builtins . storeDir
68+ ( pkgs . stdenv . mkDerivation {
69+ __structuredAttrs = true ;
70+ inherit ( pkgs . hello ) pname version src ;
71+ allowedRequisites = null ;
72+ } ) . drvPath ;
73+ expected = true ;
74+ } ;
6575 } ;
6676
6777 test-extendMkDerivation =
You can’t perform that action at this time.
0 commit comments