File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 364364 ...
365365 } :
366366 let
367+ inherit ( lib ) concatMapAttrs removeSuffix ;
367368 inherit ( lib . path ) append ;
368369 defaultPath = append directory "package.nix" ;
369370 in
370371 if pathExists defaultPath then
371372 # if `${directory}/package.nix` exists, call it directly
372373 callPackage defaultPath { }
373- else lib . concatMapAttrs ( name : type :
374+ else concatMapAttrs ( name : type :
374375 # otherwise, for each directory entry
375376 let path = append directory name ; in
376377 if type == "directory" then {
381382 } ;
382383 } else if type == "regular" && hasSuffix ".nix" name then {
383384 # call .nix files
384- "${ lib . removeSuffix ".nix" name } " = callPackage path { } ;
385+ "${ removeSuffix ".nix" name } " = callPackage path { } ;
385386 } else if type == "regular" then {
386387 # ignore non-nix files
387388 } else throw ''
You can’t perform that action at this time.
0 commit comments