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>
This commit is contained in:
toonn 2022-11-08 12:27:14 +01:00
parent 723523d07d
commit 255c80e191
No known key found for this signature in database
GPG Key ID: 44FF902A66DF4576

View File

@ -2,14 +2,14 @@
with lib;
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "b2sum";
version = "20190724";
src = fetchFromGitHub {
owner = "BLAKE2";
repo = "BLAKE2";
rev = "${version}";
rev = finalAttrs.version;
sha256 = "sha256-6BVl3Rh+CRPQq3QxcUlk5ArvjIj/IcPCA2/Ok0Zu7UI=";
};
@ -28,4 +28,4 @@ stdenv.mkDerivation rec {
# "This code requires at least SSE2."
platforms = [ "x86_64-linux" "i686-linux" ] ++ platforms.darwin;
};
}
})