mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +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; }
|