From 79815059c12816acc6084ae08472a74fcc7768ef Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 22 Nov 2024 05:20:31 +0300 Subject: [PATCH] Nix: Fix new hash convert format. --- home/program/bash/module/Nix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/program/bash/module/Nix.nix b/home/program/bash/module/Nix.nix index cde775ed..0718297a 100644 --- a/home/program/bash/module/Nix.nix +++ b/home/program/bash/module/Nix.nix @@ -57,7 +57,7 @@ return 2 fi - local result=$(nix hash convert to-sri --type sha256 $(nix-prefetch-url "''${url}")) + local result=$(nix hash convert --to sri --hash-algo sha256 $(nix-prefetch-url "''${url}")) printf "%s" ''${result} | copy printf "%s\n" ''${result} }