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