Unverified Commit 1d7fb37a authored by Jonathan Davies's avatar Jonathan Davies
Browse files

delta: Use finalAttrs

parent a17a0516
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -11,14 +11,14 @@
  versionCheckHook,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "delta";
  version = "0.18.2";

  src = fetchFromGitHub {
    owner = "dandavison";
    repo = "delta";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-fJSKGa935kwLG8WYmT9Ncg2ozpSNMzUJx0WLo1gtVAA=";
  };

@@ -66,7 +66,7 @@ rustPlatform.buildRustPackage rec {
  meta = {
    homepage = "https://github.com/dandavison/delta";
    description = "Syntax-highlighting pager for git";
    changelog = "https://github.com/dandavison/delta/releases/tag/${version}";
    changelog = "https://github.com/dandavison/delta/releases/tag/${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      zowoq
@@ -74,4 +74,4 @@ rustPlatform.buildRustPackage rec {
    ];
    mainProgram = "delta";
  };
}
})