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
This commit is contained in:
parent
379b5c2995
commit
9ec8af44ad
@ -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#";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -4,7 +4,7 @@ buildDotnetGlobalTool {
|
||||
pname = "fable";
|
||||
version = "4.18.0";
|
||||
|
||||
nugetSha256 = "sha256-PbrFjpltRx4lnQDgQrOKSVHwttePMfOnjljOddkFbmY=";
|
||||
nugetHash = "sha256-PbrFjpltRx4lnQDgQrOKSVHwttePMfOnjljOddkFbmY=";
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user