[Nix-dev] Can recursive attribute sets refer to quoted attributes?

Peter Simons simons at cryp.to
Mon Jan 26 10:55:21 CET 2015


Hi,

consider the following recursive attribute set:

    rec
    {
      "foo.bar" = "test";
    }

Is there any way to refer to "foo.bar" within that set? The obvious
attempt

    rec
    {
      "foo.bar" = "test";
      foobar1   = foo.bar;      # undefined reference
      foobar2   = "foo.bar";    # doesn't refer too "foo.bar"
    }

won't work. 

Best regards,
Peter



More information about the nix-dev mailing list