Unverified Commit 7da99d0e authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

b3sum: Add versionCheckHook (#494186)

parents 0f56fc28 c1b7477b
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -2,19 +2,25 @@
  lib,
  fetchCrate,
  rustPlatform,
  versionCheckHook,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "b3sum";
  version = "1.8.3";

  src = fetchCrate {
    inherit version pname;
    inherit (finalAttrs) version pname;
    hash = "sha256-mU2r5xbYf6A1RibWqhow/637YxybCFMT3UzYcUMjhdg=";
  };

  cargoHash = "sha256-w9l8dn4Ahck3NXuN4Ph9qmGoS767/mQRBgO9AT0CH3Y=";

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;

  meta = {
    description = "BLAKE3 cryptographic hash function";
    mainProgram = "b3sum";
@@ -27,6 +33,6 @@ rustPlatform.buildRustPackage rec {
      cc0
      asl20
    ];
    changelog = "https://github.com/BLAKE3-team/BLAKE3/releases/tag/${version}";
    changelog = "https://github.com/BLAKE3-team/BLAKE3/releases/tag/${finalAttrs.version}";
  };
}
})