Unverified Commit f5f2f5e5 authored by Christoph Jabs's avatar Christoph Jabs
Browse files

cargo-spellcheck: use finalAttrs

parent 35a0098b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -5,14 +5,14 @@
  stdenv,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "cargo-spellcheck";
  version = "0.15.5";

  src = fetchFromGitHub {
    owner = "drahnr";
    repo = "cargo-spellcheck";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-saRr1xEBefLoCgCxU/pyQOmmt/di+DOQHMoVc4LgRm0=";
  };

@@ -34,7 +34,7 @@ rustPlatform.buildRustPackage rec {
    description = "Checks rust documentation for spelling and grammar mistakes";
    mainProgram = "cargo-spellcheck";
    homepage = "https://github.com/drahnr/cargo-spellcheck";
    changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${version}/CHANGELOG.md";
    changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${finalAttrs.version}/CHANGELOG.md";
    license = with lib.licenses; [
      asl20 # or
      mit
@@ -45,4 +45,4 @@ rustPlatform.buildRustPackage rec {
      chrjabs
    ];
  };
}
})