Unverified Commit 55afca7d authored by dish's avatar dish Committed by GitHub
Browse files

delta: Add versionCheckHook (#464625)

parents 8b227d5b 1d7fb37a
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -8,16 +8,17 @@
  stdenv,
  git,
  zlib,
  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=";
  };

@@ -57,10 +58,15 @@ rustPlatform.buildRustPackage rec {
    "--skip=test_diff_real_files"
  ];

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;

  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
@@ -68,4 +74,4 @@ rustPlatform.buildRustPackage rec {
    ];
    mainProgram = "delta";
  };
}
})