nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 versionCheckHook,
6
7 pkg-config,
8 libudev-zero,
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "rogcat";
13 version = "0.5.0";
14
15 src = fetchFromGitHub {
16 owner = "flxo";
17 repo = "rogcat";
18 tag = "v${version}";
19 hash = "sha256-nXKvepuiBDIGo8Gga5tbbT/mnC6z+HipV5XYtlrURRU=";
20 };
21
22 cargoHash = "sha256-cl09j96UfLvga4cJBSd1he9nfW3taQMY2e+UPltNQMI=";
23
24 nativeBuildInputs = [
25 pkg-config
26 ];
27
28 buildInputs = [
29 libudev-zero
30 ];
31
32 doInstallCheck = true;
33
34 nativeInstallCheckInputs = [
35 versionCheckHook
36 ];
37
38 versionCheckProgramArg = "--version";
39
40 meta = {
41 description = "Adb logcat wrapper";
42 homepage = "https://github.com/flxo/rogcat";
43 changelog = "https://github.com/flxo/rogcat/releases/tag/v${version}";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ genga898 ];
46 mainProgram = "rogcat";
47 platforms = lib.platforms.linux;
48 };
49}