tvl-depot/users/sterni/nix
sterni f59ab9aba5 feat(sterni/nix/fun): add hasEllipsis
As a complementation to builtins.functionArgs this function checks if
the function has a set pattern that contains an ellipsis
(i. e. `{ [arg, [ arg1, [ … ]]] ... }:`). The implementation of this is
pretty cursed however since there is no clean way to do this in vanilla
nix: We need to match on the output of builtins.toXML which does try to
serialize functions by outputting their argument and information about
it (whether it is a normal argument or a attribute set pattern, in the
latter case it also serialize every component of the pattern).

Change-Id: I0f33721811a3180cec205a0c98e6d92e10e92075
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2950
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2021-04-12 17:47:53 +00:00
..
char feat(users/sterni/nix): add sternis nix lib 2021-03-01 17:34:35 +00:00
flow feat(users/sterni/nix/flow): add switch conditional 2021-03-05 11:07:41 +00:00
fun feat(sterni/nix/fun): add hasEllipsis 2021-04-12 17:47:53 +00:00
int feat(users/sterni/nix/utf8): pure nix utf-8 decoder 2021-03-05 11:07:41 +00:00
string refactor(users/sterni/nix/string): don't calculate length for drop 2021-03-05 11:07:41 +00:00
url feat(sterni/nix/url): implement urldecoding 2021-04-01 13:09:46 +00:00
utf8 refactor(sterni): use pkgs over third_party to import from nixpkgs 2021-04-10 11:40:18 +00:00