Commit 5bd4bc21 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent 2d2a9ddb
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -4,24 +4,22 @@
  fetchFromGitHub,
  stdenv,
  darwin,
  versionCheckHook,
  nix-update-script,
  testers,
  bunbun,
}:

rustPlatform.buildRustPackage rec {
  pname = "bunbun";
  version = "1.4.0";
  version = "1.5.0";

  src = fetchFromGitHub {
    owner = "devraza";
    repo = "bunbun";
    # TODO: remove '-bump' at next release
    rev = "refs/tags/v${version}-bump";
    hash = "sha256-r4xBUfNY+Q3uAC919ZQbIDgiF981FVqZCOT8XNojZP4=";
    rev = "refs/tags/v${version}";
    hash = "sha256-3f/G0Vx1uXeH3QMDVUAHWi4Pf/B88/4F+4XywVsp3/4=";
  };

  cargoHash = "sha256-CcGfaSyCMv0Wm4QsYASBwEnpX8fKbLHRqyEcUmj2w2o=";
  cargoHash = "sha256-UEUK8GBkyzUv2J6uTjRdyoIiHVKLDYYj1aOnl+rgzmk=";

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
    with darwin.apple_sdk.frameworks;
@@ -32,9 +30,14 @@ rustPlatform.buildRustPackage rec {
    ]
  );

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = [ "--version" ];
  doInstallCheck = true;

  passthru = {
    updateScript = nix-update-script { };
    tests.version = testers.testVersion { package = bunbun; };
  };

  meta = {