diff options
author | aleksana | 2024-07-04 18:12:26 +0800 |
---|---|---|
committer | aleksana | 2024-07-04 20:16:51 +0800 |
commit | 9ec8af44ad0b672c0b23ba46eda1e5b3f7183933 (patch) | |
tree | 546b48b6f8a4e70a3a5a78be7dca5a630b88ebf2 | |
parent | 379b5c2995780f1a1258fd68324df197b45e34e4 (diff) |
treewide: change nugetSha256 to nugetHash
This is both to verify the correctness of the changes in dotnet helper and to promote the use of nugetHash (which uses SRI hash). For more information on nugetHash, check out https://nixos.org/manual/nixpkgs/unstable/#packaging-dotnet-global-tools
-rw-r--r-- | pkgs/by-name/cs/csharpier/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/cs/csharprepl/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/fa/fantomas/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/gi/gitversion/package.nix | 2 | ||||
-rw-r--r-- | pkgs/development/tools/fable/default.nix | 2 | ||||
-rwxr-xr-x | pkgs/development/tools/fable/update.sh | 2 | ||||
-rw-r--r-- | pkgs/development/tools/language-servers/csharp-ls/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/admin/pbm/default.nix | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/by-name/cs/csharpier/package.nix b/pkgs/by-name/cs/csharpier/package.nix index e0d48a38c818..69ac2ade35b1 100644 --- a/pkgs/by-name/cs/csharpier/package.nix +++ b/pkgs/by-name/cs/csharpier/package.nix @@ -5,7 +5,7 @@ buildDotnetGlobalTool { version = "0.28.2"; executables = "dotnet-csharpier"; - nugetSha256 = "sha256-fXyE25niM80pPXCLC80Hm9XEHGUMx0XZOMxdVoA0h18="; + nugetHash = "sha256-fXyE25niM80pPXCLC80Hm9XEHGUMx0XZOMxdVoA0h18="; meta = with lib; { description = "Opinionated code formatter for C#"; diff --git a/pkgs/by-name/cs/csharprepl/package.nix b/pkgs/by-name/cs/csharprepl/package.nix index d6fccd57ea61..5b7e8f2d7c93 100644 --- a/pkgs/by-name/cs/csharprepl/package.nix +++ b/pkgs/by-name/cs/csharprepl/package.nix @@ -8,7 +8,7 @@ buildDotnetGlobalTool { dotnet-sdk = dotnetCorePackages.sdk_8_0; dotnet-runtime = dotnetCorePackages.runtime_8_0; - nugetSha256 = "sha256-VkZGnfD8p6oAJ7i9tlfwJfmKfZBHJU7Wdq+K4YjPoRs="; + nugetHash = "sha256-VkZGnfD8p6oAJ7i9tlfwJfmKfZBHJU7Wdq+K4YjPoRs="; meta = with lib; { description = "C# REPL with syntax highlighting"; diff --git a/pkgs/by-name/fa/fantomas/package.nix b/pkgs/by-name/fa/fantomas/package.nix index 804e93aa5806..8533af46bbae 100644 --- a/pkgs/by-name/fa/fantomas/package.nix +++ b/pkgs/by-name/fa/fantomas/package.nix @@ -4,7 +4,7 @@ buildDotnetGlobalTool { pname = "fantomas"; version = "6.3.9"; - nugetSha256 = "sha256-XRPC5cXMoTJLLHe3f5A3+uXakbL+D7DlX0sA52KMZKw="; + nugetHash = "sha256-XRPC5cXMoTJLLHe3f5A3+uXakbL+D7DlX0sA52KMZKw="; meta = with lib; { description = "F# source code formatter"; diff --git a/pkgs/by-name/gi/gitversion/package.nix b/pkgs/by-name/gi/gitversion/package.nix index 16c3d586dc8a..8558d2459660 100644 --- a/pkgs/by-name/gi/gitversion/package.nix +++ b/pkgs/by-name/gi/gitversion/package.nix @@ -7,7 +7,7 @@ buildDotnetGlobalTool { nugetName = "GitVersion.Tool"; version = "5.12.0"; - nugetSha256 = "sha256-dclYG2D0uSYqf++y33JCefkYLwbuRCuKd3qLMnx3BDI="; + nugetHash = "sha256-dclYG2D0uSYqf++y33JCefkYLwbuRCuKd3qLMnx3BDI="; meta = with lib; { description = "From git log to SemVer in no time"; diff --git a/pkgs/development/tools/fable/default.nix b/pkgs/development/tools/fable/default.nix index a8bffafdd1c6..2b4d1d505db3 100644 --- a/pkgs/development/tools/fable/default.nix +++ b/pkgs/development/tools/fable/default.nix @@ -4,7 +4,7 @@ buildDotnetGlobalTool { pname = "fable"; version = "4.18.0"; - nugetSha256 = "sha256-PbrFjpltRx4lnQDgQrOKSVHwttePMfOnjljOddkFbmY="; + nugetHash = "sha256-PbrFjpltRx4lnQDgQrOKSVHwttePMfOnjljOddkFbmY="; passthru.updateScript = ./update.sh; meta = with lib; { diff --git a/pkgs/development/tools/fable/update.sh b/pkgs/development/tools/fable/update.sh index 9d23084ebd85..181570d1a0de 100755 --- a/pkgs/development/tools/fable/update.sh +++ b/pkgs/development/tools/fable/update.sh @@ -36,4 +36,4 @@ NUGET_URL="$(curl -f "https://api.nuget.org/v3/index.json" | jq --raw-output '.r HASH=$(nix-hash --to-sri --type sha256 "$(nix-prefetch-url "$NUGET_URL")") sed -i "s/version = \".*\"/version = \"$VER\"/" "$NIX_DRV" -sed -i "s#nugetSha256 = \"sha256-.\{44\}\"#nugetSha256 = \"$HASH\"#" "$NIX_DRV" +sed -i "s#nugetHash = \"sha256-.\{44\}\"#nugetHash = \"$HASH\"#" "$NIX_DRV" diff --git a/pkgs/development/tools/language-servers/csharp-ls/default.nix b/pkgs/development/tools/language-servers/csharp-ls/default.nix index 0972bac8c848..5cae31845563 100644 --- a/pkgs/development/tools/language-servers/csharp-ls/default.nix +++ b/pkgs/development/tools/language-servers/csharp-ls/default.nix @@ -10,7 +10,7 @@ buildDotnetGlobalTool rec { pname = "csharp-ls"; version = "0.14.0"; - nugetSha256 = "sha256-agcx7VPIqGhl3NzdGLPwXYJsRuvSjL4SdbNg9vFjIh4="; + nugetHash = "sha256-agcx7VPIqGhl3NzdGLPwXYJsRuvSjL4SdbNg9vFjIh4="; dotnet-sdk = sdk_8_0; dotnet-runtime = sdk_8_0; diff --git a/pkgs/tools/admin/pbm/default.nix b/pkgs/tools/admin/pbm/default.nix index e681d6f286db..8a444311ffd6 100644 --- a/pkgs/tools/admin/pbm/default.nix +++ b/pkgs/tools/admin/pbm/default.nix @@ -4,7 +4,7 @@ buildDotnetGlobalTool { pname = "pbm"; version = "1.3.2"; - nugetSha256 = "sha256-xu3g8NFLZYnHzBuoIhIiAzaPJqY0xhLWLYi+ORRADH8="; + nugetHash = "sha256-xu3g8NFLZYnHzBuoIhIiAzaPJqY0xhLWLYi+ORRADH8="; meta = with lib; { description = "CLI for managing Akka.NET applications and Akka.NET Clusters"; |