diff --git a/pkgs/by-name/bu/bugstalker/package.nix b/pkgs/by-name/bu/bugstalker/package.nix index f05655b577bd9..7491b48744e2e 100644 --- a/pkgs/by-name/bu/bugstalker/package.nix +++ b/pkgs/by-name/bu/bugstalker/package.nix @@ -1,34 +1,35 @@ { lib, - rustPlatform, fetchFromGitHub, - pkg-config, - libunwind, + nix-update-script, + rustPlatform, + versionCheckHook, }: - rustPlatform.buildRustPackage (finalAttrs: { pname = "bugstalker"; - version = "0.3.1"; + version = "0.4.1"; src = fetchFromGitHub { owner = "godzie44"; repo = "BugStalker"; rev = "v${finalAttrs.version}"; - hash = "sha256-c3NyYDz+Ha5jHTpXLw9xsY+h0NjW9Uvpyn2PStmahKA="; + hash = "sha256-9l6IVQBjZkpSS28ai/d27JUPBWj2Q17RVhsFrrI45TM="; }; - cargoHash = "sha256-/FSV/avsg7kbgtinmKBb0+gemLFZdSE+A+tfLvtfNas="; - - buildInputs = [ libunwind ]; - - nativeBuildInputs = [ pkg-config ]; + cargoHash = "sha256-+VvKWY9CqUUkDKzG2nLG9ibkE6xwP3StTzlovBZH8O8="; # Tests require rustup. doCheck = false; + nativeInstallCheckHook = [ versionCheckHook ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Rust debugger for Linux x86-64"; homepage = "https://github.com/godzie44/BugStalker"; + changelog = "https://github.com/godzie44/BugStalker/blob/v${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jacg ]; mainProgram = "bs";