Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created October 17, 2018 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/7a0a55be92c452495a31989aa9f826df to your computer and use it in GitHub Desktop.
Save grahamc/7a0a55be92c452495a31989aa9f826df to your computer and use it in GitHub Desktop.
<example xml:id="function-library-lib.attrsets.getOutput-example">
<title>Getting the dev output</title>
<para>
<programlisting role="context">
{
pkgs = {
hello = {
outputUnspecified = true;
dev = "/nix/store/00000000000000000000000000000000-hello-2.10-dev";
};
};
}
</programlisting>
<programlisting role="input"><![CDATA[
lib.attrsets.getOutput "dev" pkgs.hello
]]></programlisting>
returns:
<programlisting role="output"><![CDATA[
"/nix/store/00000000000000000000000000000000-hello-2.10-dev"
]]></programlisting>
</para>
</example>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment