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