<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Talk%3AUpdate_a_package</id>
	<title>Talk:Update a package - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Talk%3AUpdate_a_package"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Talk:Update_a_package&amp;action=history"/>
	<updated>2026-04-30T20:40:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.0</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Talk:Update_a_package&amp;diff=20887&amp;oldid=prev</id>
		<title>Jeantil: /* Oudated hashing practice */ new section</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Talk:Update_a_package&amp;diff=20887&amp;oldid=prev"/>
		<updated>2025-03-13T08:27:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Oudated hashing practice: &lt;/span&gt; new section&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Oudated hashing practice ==&lt;br /&gt;
&lt;br /&gt;
I think the page is currently outdated with regards to hashing best practices. I tried following the page to update the zettlr package but it uses an SRI hash instead of directly sha256, and so does the current i3 package definition.&lt;br /&gt;
&lt;br /&gt;
The page recommends to use &amp;lt;code&amp;gt;nix-prefetch-url&amp;lt;/code&amp;gt; but that outputs a raw sha256 hash, while it is possible to convert the output to a proper SRI hash using&lt;br /&gt;
 $ nix-prefetch-url &amp;#039;&amp;lt;nowiki&amp;gt;http://i3wm.org/downloads/i3-4.5.1.tar.bz2&amp;#039;&amp;lt;/nowiki&amp;gt; | xargs nix hash to-sri --type sha256&lt;br /&gt;
I feel the page would benefit from being updated to use &amp;lt;code&amp;gt;nix store prefetch-file&amp;lt;/code&amp;gt; instead. Both are discussed in https://discourse.nixos.org/t/why-does-nix-prefetch-url-not-return-hashes-in-sri-format/18271 [[User:Jeantil|Jeantil]] ([[User talk:Jeantil|talk]]) 08:27, 13 March 2025 (UTC)&lt;/div&gt;</summary>
		<author><name>Jeantil</name></author>
	</entry>
</feed>