sccache: use finalAttrs pattern instead of rec

This commit is contained in:
unixpariah
2025-08-13 11:11:56 +02:00
committed by os1
parent b9e3822cf1
commit 22b7bcb537
+4 -4
View File
@@ -7,14 +7,14 @@
distributed ? false,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
version = "0.10.0";
pname = "sccache";
src = fetchFromGitHub {
owner = "mozilla";
repo = "sccache";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "sha256-VEDMeRFQKNPS3V6/DhMWxHR7YWsCzAXTzp0lO+COl08=";
};
@@ -40,11 +40,11 @@ rustPlatform.buildRustPackage rec {
description = "Ccache with Cloud Storage";
mainProgram = "sccache";
homepage = "https://github.com/mozilla/sccache";
changelog = "https://github.com/mozilla/sccache/releases/tag/v${version}";
changelog = "https://github.com/mozilla/sccache/releases/tag/v${finalAttrs.version}";
maintainers = with lib.maintainers; [
doronbehar
figsoda
];
license = lib.licenses.asl20;
};
}
})