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