Skip to content

Commit

Permalink
Remove latestNixOSRelease
Browse files Browse the repository at this point in the history
This way we don't have to regenerate the download page whenever the
channel updates.
  • Loading branch information
edolstra committed Mar 9, 2020
1 parent 767a50a commit 1fe97b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -125,7 +125,7 @@ favicon.png: logo/nixos-logo-only-hires.png
nixos-release.tt:
uri=$$(curl --fail --silent -o /dev/null -w %{redirect_url} https://nixos.org/channels/nixos-${NIXOS_SERIES}); \
version=$$(echo $$uri | sed 's|.*/nixos-||'); \
echo "[%- latestNixOSSeries = \"${NIXOS_SERIES}\"; latestNixOSRelease = \"$$version\" -%]" > $@
echo "[%- latestNixOSSeries = \"${NIXOS_SERIES}\"; -%]" > $@

%: %.in common.tt nix-release.tt
echo $$PATH
Expand Down
2 changes: 1 addition & 1 deletion nixos-release.tt
@@ -1 +1 @@
[%- latestNixOSSeries = "19.09"; latestNixOSRelease = "19.09.2158.d8652430c55" -%]
[%- latestNixOSSeries = "19.09"; -%]
13 changes: 6 additions & 7 deletions nixos/download.tt
Expand Up @@ -3,8 +3,7 @@
[% USE JSON.Escape %]

<p>The latest stable release series is
<strong>[%latestNixOSSeries%]</strong> and the latest release in that
series is <strong>[%latestNixOSRelease%]</strong>. Below are links to
<strong>[%latestNixOSSeries%]</strong>. Below are links to
CD/DVD images and VirtualBox appliances containing the <a
href="https://nixos.org/channels/nixos-[%latestNixOSSeries%]">latest
release</a> in this series. <a class="btn btn-large btn-success
Expand All @@ -30,10 +29,10 @@ installer as well as X11, Plasma 5 Desktop and several applications. It’s a
<em>live CD</em>, so it allows you to get an impression of NixOS (and
the Nix package manager) before installing it.</p>

[% prefix = "https://releases.nixos.org/nixos/" _ latestNixOSSeries _ "/nixos-" _ latestNixOSRelease %]
[% prefix = "https://releases.nixos.org/nixos" %]

<ul>
<li><a href="[%prefix%]/nixos-graphical-[%latestNixOSRelease%]-x86_64-linux.iso">Graphical live CD, 64-bit Intel/AMD</a> (<a href="[%prefix%]/nixos-graphical-[%latestNixOSRelease%]-x86_64-linux.iso.sha256">SHA-256</a>)
<li><a href="[%prefix%]/latest-nixos-graphical-x86_64-linux.iso">Graphical live CD, 64-bit Intel/AMD</a> (<a href="[%prefix%]/latest-nixos-graphical-x86_64-linux.iso.sha256">SHA-256</a>)
<span class="label label-info">Recommended for most users</span></li>
</ul>

Expand All @@ -42,8 +41,8 @@ and is therefore a lot smaller. You have to run the installer from
the console. It contains a number of rescue tools.</p>

<ul>
<li><a href="[%prefix%]/nixos-minimal-[%latestNixOSRelease%]-x86_64-linux.iso">Minimal installation CD, 64-bit Intel/AMD</a> (<a href="[%prefix%]/nixos-minimal-[%latestNixOSRelease%]-x86_64-linux.iso.sha256">SHA-256</a>)</li>
<li><a href="[%prefix%]/nixos-minimal-[%latestNixOSRelease%]-i686-linux.iso">Minimal installation CD, 32-bit Intel/AMD</a> (<a href="[%prefix%]/nixos-minimal-[%latestNixOSRelease%]-i686-linux.iso.sha256">SHA-256</a>)</li>
<li><a href="[%prefix%]/latest-nixos-minimal-x86_64-linux.iso">Minimal installation CD, 64-bit Intel/AMD</a> (<a href="[%prefix%]/latest-nixos-minimal-x86_64-linux.iso.sha256">SHA-256</a>)</li>
<li><a href="[%prefix%]/latest-nixos-minimal-i686-linux.iso">Minimal installation CD, 32-bit Intel/AMD</a> (<a href="[%prefix%]/latest-nixos-minimal-i686-linux.iso.sha256">SHA-256</a>)</li>
</ul>

</section>
Expand All @@ -60,7 +59,7 @@ appears, you can log in as <strong>user <tt>demo</tt></strong>,
<tt>sudo -i</tt> in the KDE terminal (<tt>konsole</tt>).</p>

<ul>
<li><a href="[%prefix%]/nixos-[%latestNixOSRelease%]-x86_64-linux.ova">VirtualBox appliance, 64-bit Intel/AMD</a> (<a href="[%prefix%]/nixos-[%latestNixOSRelease%]-x86_64-linux.ova.sha256">SHA-256</a>)</li>
<li><a href="[%prefix%]/latest-nixos-x86_64-linux.ova">VirtualBox appliance, 64-bit Intel/AMD</a> (<a href="[%prefix%]/latest-nixos-x86_64-linux.ova.sha256">SHA-256</a>)</li>
</ul>

</section>
Expand Down

1 comment on commit 1fe97b3

@garbas
Copy link
Member

@garbas garbas commented on 1fe97b3 Mar 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.