Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix-pills
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a3c3d6d889d2
Choose a base ref
...
head repository: NixOS/nix-pills
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4bdce7aa1099
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Apr 9, 2018

  1. fix import issues in pill 20

    dudebout authored and Ericson2314 committed Apr 9, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4bdce7a View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 pills/20-basic-dependencies-and-hooks.xml
  2. 0 pills/20/{propagated-build-inputs-3.bash → propagated-build-inputs-2.bash}
4 changes: 2 additions & 2 deletions pills/20-basic-dependencies-and-hooks.xml
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
For the simplest dependencies where the current package directly needs another, we use the <varname>buildInputs</varname> attribute.
This is exactly the pattern in taught with our builder in <link linkend="generic-builders">Pill 8</link>.
To demo this, lets build GNU Hello, and then another package which provides a shell script that <command>exec</command>s it.
<screen><xi:include href="./20/two-hellos.txt" parse="text" /></screen>
<screen><xi:include href="./20/two-hellos.nix" parse="text" /></screen>
</para>

<para>
@@ -63,7 +63,7 @@
Nix itself handles this just fine, understanding various dependency <firstterm>closures</firstterm> as covered in previous builds.
But what about the conveniences that <varname>buildInputs</varname> provides, namely accumulating in <envar>pkgs</envar> environment variable and inclusion of <filename><replaceable>pkg</replaceable>/bin</filename> directories on the <envar>PATH</envar>?
For this, Stdenv provides the <varname>propagatedBuildInputs</varname>:
<screen><xi:include href="./20/two-hellos.txt" parse="text" /></screen>
<screen><xi:include href="./20/two-hellos.nix" parse="text" /></screen>
See how the intermediate package has a <varname>propagatedBuildInputs</varname> dependency, but the wrapper only needs a <varname>buildInputs</varname> dependency on the intermediary.
</para>

File renamed without changes.