dprint: prefer finalAttrs

This commit is contained in:
Kenichi Kamiya
2025-05-19 11:16:58 +09:00
parent 95d37034c6
commit 26b6177f6f
+5 -5
View File
@@ -9,7 +9,7 @@
dprint,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dprint";
version = "0.50.0";
@@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "dprint";
repo = "dprint";
tag = version;
tag = finalAttrs.version;
hash = "sha256-6AgbKH5f7N/yYqq7KBVHOqYbyuZkjFSaYwZwIXsgd9o=";
};
@@ -50,7 +50,7 @@ rustPlatform.buildRustPackage rec {
passthru = {
tests.version = testers.testVersion {
inherit version;
inherit (finalAttrs) version;
package = dprint;
command = ''
@@ -68,7 +68,7 @@ rustPlatform.buildRustPackage rec {
It offers multiple WASM plugins to support various languages. It's written in
Rust, so its small, fast, and portable.
'';
changelog = "https://github.com/dprint/dprint/releases/tag/${version}";
changelog = "https://github.com/dprint/dprint/releases/tag/${finalAttrs.version}";
homepage = "https://dprint.dev";
license = licenses.mit;
maintainers = with maintainers; [
@@ -78,4 +78,4 @@ rustPlatform.buildRustPackage rec {
];
mainProgram = "dprint";
};
}
})