From 505299bcde671fad059356a7f8edf171f2c6c5e7 Mon Sep 17 00:00:00 2001 From: Kayla Firestack Date: Tue, 19 Oct 2021 15:25:33 -0400 Subject: [PATCH] bcachefs-kernel.nix: rename sha256 function input overlay.nix: rename diffHash to sha256 replaces diffHash function argument with the name sha256 for clarity Signed-off-by: Kayla Firestack --- nix/bcachefs-kernel.nix | 4 ++-- nix/overlay.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/bcachefs-kernel.nix b/nix/bcachefs-kernel.nix index 2e4f339d..c937df4c 100644 --- a/nix/bcachefs-kernel.nix +++ b/nix/bcachefs-kernel.nix @@ -4,7 +4,7 @@ , fetchFromGitHub , buildLinux , commit -, diffHash ? lib.fakeSha256 +, sha256 ? lib.fakeSha256 , kernelVersion ? "5.13.0" , kernelPatches ? [] # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage , argsOverride ? {} @@ -26,7 +26,7 @@ buildLinux { owner = "koverstreet"; repo = "bcachefs"; rev = commit; - sha256 = diffHash; + inherit sha256; }; extraConfig = "BCACHEFS_FS m"; diff --git a/nix/overlay.nix b/nix/overlay.nix index 947242ba..9c33396f 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -22,7 +22,7 @@ final: prev: { kernel = final.callPackage ./bcachefs-kernel.nix { commit = final.bcachefs.tools.bcachefs_revision; # This needs to be recalculated for every revision change - diffHash = "sha256-XSA0dBZZL8RXplgjpoLOFSULM8t/0Ztz8xlhLn9hdyw="; + sha256 = "sha256-XSA0dBZZL8RXplgjpoLOFSULM8t/0Ztz8xlhLn9hdyw="; kernelPatches = []; }; };