diff options
Diffstat (limited to 'pkgs/by-name/bu/bunbun/package.nix')
-rw-r--r-- | pkgs/by-name/bu/bunbun/package.nix | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/by-name/bu/bunbun/package.nix b/pkgs/by-name/bu/bunbun/package.nix index ab9068277871..4bb2f8b0df0b 100644 --- a/pkgs/by-name/bu/bunbun/package.nix +++ b/pkgs/by-name/bu/bunbun/package.nix @@ -4,26 +4,24 @@ 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.isDarwin ( + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin ( with darwin.apple_sdk.frameworks; [ CoreFoundation @@ -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 = { |