On 06/01/2015 04:02 AM, Arseniy Seroka wrote:
> Hello! How can I view attribute as a string?
> `toString` is not what I need.
> I need `getAttrAsString pkgs.firefox -> "firefox"`

See http://nixos.org/nix/manual/#ssec-builtins - there's
builtins.attrNames, for example, so

builtins.attrNames { inherit (pkgs) firefox; } == [ "firefox" ]


Vladimir



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to