How does Nix's “callPackage” call functions defined without an ellipsis?
问题 To call a Nix function that uses set destructuring, you need to pass it a set with exactly the keys it requires, no more and no less: nix-repl> ({ a }: a) { a = 4; b = 5; } error: anonymous function at (string):1:2 called with unexpected argument ‘b’, at (string):1:1 The exception to this is if the function's argument list contains an ellipsis at the end: nix-repl> ({ a, ... }: a) { a = 4; b = 5; } 4 However, most of the packages in nixpkgs consist of a default.nix file containing a function