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