From 5904f8766b8802cc79adeb41b0ff0cca05e1767f Mon Sep 17 00:00:00 2001 From: genga Date: Wed, 20 Nov 2024 20:58:59 +0300 Subject: [PATCH] rogcat: init at 0.4.7 rogcat: update meta rogcat: add nativeInstallCheckInputs --- pkgs/by-name/ro/rogcat/package.nix | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/ro/rogcat/package.nix diff --git a/pkgs/by-name/ro/rogcat/package.nix b/pkgs/by-name/ro/rogcat/package.nix new file mode 100644 index 000000000000..d4d930c174b7 --- /dev/null +++ b/pkgs/by-name/ro/rogcat/package.nix @@ -0,0 +1,49 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + versionCheckHook, + + pkg-config, + libudev-zero, +}: + +rustPlatform.buildRustPackage rec { + pname = "rogcat"; + version = "0.4.7"; + + src = fetchFromGitHub { + owner = "flxo"; + repo = "rogcat"; + rev = "refs/tags/v${version}"; + hash = "sha256-l2zfVt2vm5GTrYs6/0D3EesxxPWSmjf2tGS545766iA="; + }; + + cargoHash = "sha256-cDAS8mengFgBsq9nTiVAjt7pJhKjj7/F9x8IS6vP2ck="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libudev-zero + ]; + + doInstallCheck = true; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + versionCheckProgramArg = [ "--version" ]; + + meta = { + description = "Adb logcat wrapper"; + homepage = "https://github.com/flxo/rogcat"; + changelog = "https://github.com/flxo/rogcat/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ genga898 ]; + mainProgram = "rogcat"; + platforms = lib.platforms.linux; + }; +}