"Reproduce" action: Support flakes

[?]
May 10, 2019, 10:52 PM
3LEGFJFPEUE7RLBS2GYULCKIOPGI3UNGC6FYGAF7F2HZ2TDHKVUAC

Dependencies

  • [2] OPUHSVJF Remove "bashism"
  • [3] JIJDYWPY Remove the Build menu from the top bar
  • [4] XTKCALUA Make "Add to release" a modal dialog
  • [5] JATC3WQY Make actions dropdown easier to find by making the dropdown title bold
  • [6] VCG6KNUX Remove the "clone build" feature
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/root/build.tt at line 123
    [3.226][3.226:260]()
    [% IF build.nixexprinput %]
    [3.226]
    [3.260]
    [% IF build.nixexprinput || eval.flake %]
  • edit in src/root/build.tt at line 534
    [3.1563]
    [3.1563]
    [% IF eval.flake %]
    <p>If you have <a href='https://nixos.org/nix/download.html'>Nix
    installed</a>, you can reproduce this build on your own machine by
    running the following command:</p>
  • replacement in src/root/build.tt at line 541
    [3.1564][3.1564:1840]()
    <p>You can reproduce this build on your own machine by downloading
    <a [% HTML.attributes(href => url) %]>a script</a> that checks out
    all inputs of the build and then invokes Nix to perform the build.
    This script requires that you have Nix on your system.</p>
    [3.1564]
    [3.1840]
    <pre>
    <span class="shell-prompt"># </span>nix build [% HTML.escape(eval.flake) %]:hydraJobs.[% HTML.escape(job.name) %]
    </pre>
    [% ELSE %]
    <p>If you have <a href='https://nixos.org/nix/download.html'>Nix
    installed</a>, you can reproduce this build on your own machine by
    downloading <a [% HTML.attributes(href => url) %]>a script</a>
    that checks out all inputs of the build and then invokes Nix to
    perform the build.</p>
  • replacement in src/root/build.tt at line 557
    [3.1948][2.0:113]()
    <span class="shell-prompt">$ </span>curl <a [% HTML.attributes(href => url) %]>[% HTML.escape(url) %]</a> | bash
    [3.1948]
    [3.2062]
    <span class="shell-prompt"># </span>curl <a [% HTML.attributes(href => url) %]>[% HTML.escape(url) %]</a> | bash
  • edit in src/root/build.tt at line 560
    [3.2070]
    [3.2070]
    [% END %]