b2sum: Prefer finalAttrs over rec

This came up in review of PR #198456 and should make overriding more consistent.

Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>

toonn 255c80e1 723523d0

+3 -3
+3 -3
pkgs/tools/security/b2sum/default.nix
··· 2 2 3 3 with lib; 4 4 5 - stdenv.mkDerivation rec { 5 + stdenv.mkDerivation (finalAttrs: { 6 6 pname = "b2sum"; 7 7 version = "20190724"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "BLAKE2"; 11 11 repo = "BLAKE2"; 12 - rev = "${version}"; 12 + rev = finalAttrs.version; 13 13 sha256 = "sha256-6BVl3Rh+CRPQq3QxcUlk5ArvjIj/IcPCA2/Ok0Zu7UI="; 14 14 }; 15 15 ··· 28 28 # "This code requires at least SSE2." 29 29 platforms = [ "x86_64-linux" "i686-linux" ] ++ platforms.darwin; 30 30 }; 31 - } 31 + })