mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-16 11:16:15 +02:00
5 lines
156 B
Nix
5 lines
156 B
Nix
|
let
|
||
|
fun = { foo }: {};
|
||
|
pos = builtins.unsafeGetAttrPos "foo" (builtins.functionArgs fun);
|
||
|
in { inherit (pos) column line; file = baseNameOf pos.file; }
|