dust: use finalAttrs pattern

This commit is contained in:
Defelo
2025-05-23 17:54:07 +02:00
parent c9e5b2da15
commit f644ca5a95
+3 -3
View File
@@ -5,7 +5,7 @@
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
# Originally, this package was under the attribute `du-dust`, since `dust` was taken.
# Since then, `dust` has been freed up, allowing this package to take that attribute.
# However in order for tools like `nix-env` to detect package updates, keep `du-dust` for pname.
@@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "bootandy";
repo = "dust";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-MmlCTF7tZBBOCnyhUjTatDjajFMGd+Nk2kYyxjzZc04=";
# Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation.
@@ -43,4 +43,4 @@ rustPlatform.buildRustPackage rec {
maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "dust";
};
}
})