sccache: use `finalAttrs` pattern instead of `rec`

authored by

unixpariah and committed by
os1
22b7bcb5 b9e3822c

+4 -4
+4 -4
pkgs/by-name/sc/sccache/package.nix
··· 7 7 distributed ? false, 8 8 }: 9 9 10 - rustPlatform.buildRustPackage rec { 10 + rustPlatform.buildRustPackage (finalAttrs: { 11 11 version = "0.10.0"; 12 12 pname = "sccache"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "mozilla"; 16 16 repo = "sccache"; 17 - rev = "v${version}"; 17 + rev = "v${finalAttrs.version}"; 18 18 sha256 = "sha256-VEDMeRFQKNPS3V6/DhMWxHR7YWsCzAXTzp0lO+COl08="; 19 19 }; 20 20 ··· 40 40 description = "Ccache with Cloud Storage"; 41 41 mainProgram = "sccache"; 42 42 homepage = "https://github.com/mozilla/sccache"; 43 - changelog = "https://github.com/mozilla/sccache/releases/tag/v${version}"; 43 + changelog = "https://github.com/mozilla/sccache/releases/tag/v${finalAttrs.version}"; 44 44 maintainers = with lib.maintainers; [ 45 45 doronbehar 46 46 figsoda 47 47 ]; 48 48 license = lib.licenses.asl20; 49 49 }; 50 - } 50 + })