diff --git a/pkgs/by-name/dp/dprint/package.nix b/pkgs/by-name/dp/dprint/package.nix index 639c2f854596..1dd5167a7ced 100644 --- a/pkgs/by-name/dp/dprint/package.nix +++ b/pkgs/by-name/dp/dprint/package.nix @@ -12,7 +12,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "dprint"; - version = "0.52.1"; + version = "0.53.0"; # Prefer repository rather than crate here # - They have Cargo.lock in the repository @@ -21,10 +21,10 @@ rustPlatform.buildRustPackage (finalAttrs: { owner = "dprint"; repo = "dprint"; tag = finalAttrs.version; - hash = "sha256-CV0txMWYL9s11pA59D/RCt/s8GZ9LpUqOpEhK0yOhfA="; + hash = "sha256-4LtE/r/qUiZb4bOph/XEx+U0g11fvyX/nKZh8Ikt0SQ="; }; - cargoHash = "sha256-ca5e5wWRfMz+qCMbAUlMls8u+txcHgZ0R9dzN+dm1L4="; + cargoHash = "sha256-BV+hyiuIvn811E1y0IWOTkjtEpH/l6drWHXeMIXeOWk="; nativeBuildInputs = [ installShellFiles ]; @@ -78,7 +78,11 @@ rustPlatform.buildRustPackage (finalAttrs: { versionCheckKeepEnvironment = [ "HOME" ]; passthru = { - updateScript = nix-update-script { }; + updateScript = nix-update-script { + # Follow upstream's release policy. Git tags are not enough for this package: + # https://github.com/dprint/dprint/issues/1113 + extraArgs = [ "--use-github-releases" ]; + }; }; meta = {